-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (26 loc) · 702 Bytes
/
Main.java
File metadata and controls
30 lines (26 loc) · 702 Bytes
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
import controllers.AppCtrl;
import javafx.application.Application;
import javafx.stage.Stage;
/**
* This exists simply to launch the application:
* - main() method calls javaFX launch()
* - launch() / start() initializes a javaFX application
* - "primaryStage" (GUI window) passed to our AppCtrl
*
* This is a separate class from AppCtrl because
* it is required to extend the javaFX Application class.
* More info:
* https://stackoverflow.com/a/33304137
**/
public class Main extends Application
{
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception
{
AppCtrl.getAppController(primaryStage);
}
}