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