All Classes Namespaces Files Functions Variables
NimiJaVuosiMain.java
Go to the documentation of this file.
1 package stringgrid;
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 24.3.2016
13  */
14 public class NimiJaVuosiMain extends Application {
15  @Override
16  public void start(Stage primaryStage) {
17  try {
18  FXMLLoader ldr = new FXMLLoader(getClass().getResource("NimiJaVuosiView.fxml"));
19  final Pane root = ldr.load();
20  //final SRController srCtrl = (SRController) ldr.getController();
21  Scene scene = new Scene(root);
22  scene.getStylesheets().add(getClass().getResource("nimijavuosi.css").toExternalForm());
23  primaryStage.setScene(scene);
24  primaryStage.setTitle("NimiJaVuosi");
25  primaryStage.show();
26  } catch(Exception e) {
27  e.printStackTrace();
28  }
29  }
30 
31  /**
32  * @param args Ei käytössä
33  */
34  public static void main(String[] args) {
35  launch(args);
36  }
37 }