- Mastering JavaFX 10
- Sergey Grinev
- 42字
- 2021-06-25 21:21:51
Using the Application.launch() method
If you need to have control over the moment JavaFX starts, you can use the Application.launch() method:
public static void main(String[] args) {
// you custom code
Application.launch(MyApplication.class, args);
}
Here, MyApplication should extend javafx.application.Application.