Package comp3111.covid
Class MyApplication
java.lang.Object
javafx.application.Application
comp3111.covid.MyApplication
public class MyApplication
extends javafx.application.Application
The entry point of the entire program. It is quite unlikely you need to change this file. But you can change it if you want :)
GUI
---
If you are aiming at some very basic features, you might not even need to edit the GUI. But you are always encouraged to understand the
entire package and you are always allowed to change the base code to suit what you need.
Your GUI is described in the file ui.fxml which is located in src/main/java/ui.fxml . To edit your GUI go straight to edit the ui.fxml.
I generate this ui.fxml by javafx builder (http://gluonhq.com/products/scene-builder/). You can learn how to use it with tips from
this youtube video for a real fast bootstrap (https://www.youtube.com/watch?v=Z1W4E2d4Yxo). Or, alternatively try to understand the ui.fxml
and edit it by trial and error with Google!
Entry Point
-----------
The program will start with the function public static void main and it will eventually trigger the function public void start. What this
function will do is to load this ui.fxml into a GUI application. The ui.fxml has specified that "all event will be handled by the class -
Controller". Let's trace the function void start which will be called by the framework shortly after the program start.
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description Controllercontroller -
Constructor Summary
Constructors Constructor Description MyApplication() -
Method Summary
-
Field Details
-
Constructor Details
-
MyApplication
public MyApplication()
-
-
Method Details
-
start
public void start(javafx.stage.Stage stage) throws java.lang.Exception- Specified by:
startin classjavafx.application.Application- Throws:
java.lang.Exception- See Also:
This function will be called by the framework shortly after the program started. You are not required to change any line of code below.
-
main
public static void main(java.lang.String[] args)Entry point of the program. No argument should be supplied- Parameters:
args- - not used.
-