JavaFX : invoking ' Application.launch(args) ' from a method other than main [duplicate]
This question already has answers here : Starting JavaFX from Main method of class which doesn't extend Application (3 answers) Closed 4 years ago . Question Can I call ' Application.launch(args); ' from a method other than main? If so could you provide an example keeping in mind the below context? Background I'm build a learning/teaching, command/text application, that teaches the user about arrays. At the end of the main class, after the major application content has ran, I call ' ViewSiteOrExit.viewSitePromptPuSVM(); ', which gives the user the opposition to either: open the Oracle page on