If I want to use javafx.application.Application How to add some custom code to the start method of Application, that is, rewrite this method, in the 21 version of fxgl? #1372
Because I want to use the Atlantafx framework( https://github.com/mkpaz/atlantafx )To use it, you must add code similar to the following in the start method:
`public class Launcher extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) {
// find more themes in 'atlantafx.base.theme' package
Application.setUserAgentStylesheet(new PrimerLight().getUserAgentStylesheet());
Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
// the rest of the code ...
}
Because I want to use the Atlantafx framework( https://github.com/mkpaz/atlantafx )To use it, you must add code similar to the following in the start method: `public class Launcher extends Application {
}`