All Classes Namespaces Files Functions Variables
RistiNollaMain.java
Go to the documentation of this file.
1 package ristinolla;
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 26.3.2016
13  *
14  */
15 public class RistiNollaMain extends Application {
16  @Override
17  public void start(Stage primaryStage) {
18  try {
19  FXMLLoader ldr = new FXMLLoader(getClass().getResource("RistiNollaView.fxml"));
20  final Pane root = ldr.load();
21  //final RistiNollaController ristinollaCtrl = (RistiNollaController) ldr.getController();
22  Scene scene = new Scene(root);
23  scene.getStylesheets().add(getClass().getResource("ristinolla.css").toExternalForm());
24  primaryStage.setScene(scene);
25  primaryStage.setTitle("RistiNolla");
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 }