/
Start.java
36 lines (28 loc) · 912 Bytes
/
Start.java
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
package de.stevenschwenke.java.javafx.simFX.application;
import de.stevenschwenke.java.javafx.simFX.ui.javaFX.JavaFxApplication;
/**
* Entry point for this project. Here, the used UI framework is chosen. The
* application is started in a new thread.
*
* @author Steven Schwenke
*
*/
public class Start {
public static void main(String[] args) throws InterruptedException {
// If there were other user interfaces, here would be the decision which
// of them to start. Right now, there is only JavaFX.
Thread t = new Thread() {
@Override
public void run() {
System.out.println("Starting JavaFX ...");
JavaFxApplication.main(new String[0]);
System.out.println("JavaFX ended");
}
};
t.start();
t.join();
System.out.println("terminating or closing java program");
System.exit(1);
}
// TODO use logger instead of System.out
}