
上QQ阅读APP看书,第一时间看更新
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.