-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
20 lines (17 loc) · 703 Bytes
/
Main.java
File metadata and controls
20 lines (17 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import javafx.application.*;
import javafx.stage.*;
// The Main application class. Here we set up the "MVC" components and display
// the primary stage (main window).
public class Main extends Application {
// Our entry point (the "main" of JavaFX). Since we are using an "MVC"
// design, most of the real work happens in the MyModel, MyView, and
// MyController classes.
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("MVC Sample App");
MyModel model = new MyModel();
MyController controller = new MyController(model);
MyView view = new MyView(primaryStage, controller, model);
primaryStage.show();
}
}