-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (30 loc) · 844 Bytes
/
Main.java
File metadata and controls
35 lines (30 loc) · 844 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
31
32
33
34
35
import javafx.application.Application;
import javafx.stage.Stage;
import model.CalendarModel;
import views.CalendarView;
/**
* Main Class for the Application.
*/
public class Main extends Application {
CalendarView view; // the calendar view to render for the application.
/**
* The Main function of the class.
* <p>
* The launcher for JavaFx application.
*
* @param args arguments
*/
public static void main(String[] args) {
launch(args);
}
/**
* To Start the application.
*
* @param primaryStage the stage for the JavaFx application.
* @throws Exception any exception that is to be thrown
*/
@Override
public void start(Stage primaryStage) throws Exception {
this.view = CalendarView.getView(new CalendarModel(), primaryStage);
}
}