blob: 5d5e0497743b10f54a0a9e3a295b2fd41c7bd029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package de.fhswf.in.inf.UpnFx;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
/**
* This is the starting point for the application.
*
* @author Stefan Suhren
* @version 1.0
*/
public class MainApp extends Application
{
/*
* (non-Javadoc)
*
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage)
{
try
{
AnchorPane apane = FXMLLoader.load(MainApp.class
.getResource("view/MainView.fxml"));
Scene scene = new Scene(apane);
primaryStage.setScene(scene);
primaryStage.setTitle("UpnFx");
primaryStage.show();
}
catch (Exception e)
{
e.printStackTrace();
}
}
/**
* The main function.
*
* @param args
* The command line arguments
*/
public static void main(String[] args)
{
launch(args);
}
}
|