All Classes Namespaces Files Functions Variables
BorderPaneController.java
Go to the documentation of this file.
1 package containers.borderPaneEx;
2 
3 import javafx.application.Application;
4 import javafx.fxml.FXMLLoader;
5 import javafx.stage.Stage;
6 import javafx.scene.Scene;
7 import javafx.scene.layout.Pane;
8 
9 /**
10  * Pääohjelma BorderPanen esittelyyn. Mallilomake
11  * luodaan FXML-tiedostosta lukemalla.
12  * @author vesal
13  * @version 24.12.2015
14  */
15 public class BorderPaneController extends Application {
16  @Override
17  public void start(Stage primaryStage) {
18  try {
19  Pane root = (Pane) FXMLLoader.load(getClass().getResource("BorderPaneView.fxml"));
20  Scene scene = new Scene(root, 400, 400);
21  primaryStage.setScene(scene);
22  primaryStage.setTitle("BorderPane");
23  primaryStage.show();
24  } catch (Exception e) {
25  e.printStackTrace();
26  }
27  }
28 
29 
30  /**
31  * Käynnistetään sovellus
32  * @param args kutsun parametrit, käyttö riippuu Application luokasta
33  */
34  public static void main(String[] args) {
35  launch(args);
36  }
37 }