All Classes Namespaces Files Functions Variables
RbChooserExampleMain.java
Go to the documentation of this file.
1 package rbchooser;
2 
3 import javafx.application.Application;
4 import javafx.stage.Stage;
5 import javafx.scene.Scene;
6 import javafx.scene.layout.Pane;
7 import javafx.fxml.FXMLLoader;
8 
9 
10 /**
11  * @author vesal
12  * @version 15.1.2017
13  *
14  */
15 public class RbChooserExampleMain extends Application {
16  @Override
17  public void start(Stage primaryStage) {
18  try {
19  FXMLLoader ldr = new FXMLLoader(getClass().getResource("RbChooserExampleView.fxml"));
20  final Pane root = ldr.load();
21  //final RbChooserExampleController rbchooserexampleCtrl = (RbChooserExampleController) ldr.getController();
22  Scene scene = new Scene(root);
23  scene.getStylesheets().add(getClass().getResource("rbchooserexample.css").toExternalForm());
24  primaryStage.setScene(scene);
25  primaryStage.setTitle("RbChooserExample");
26  primaryStage.show();
27  } catch(Exception e) {
28  e.printStackTrace();
29  }
30  }
31 
32  /**
33  * @param args Ei käytössä
34  */
35  public static void main(String[] args) {
36  launch(args);
37  }
38 }