In a JavaFX application i want to be able to get to the command line arguments in the fallback class, is there a way to to that?
When i create the JavaFX application i set a custom fallback class
<fx:application id="MyApplication" name="My Application"
mainClass="MyApplication.Main"
fallbackClass="MyApplication.Fallback"
toolkit="swing"/>
My custom fallback class looks like
public class Fallback extends javax.swing.JApplet{
public Fallback(){
MyApplication.Main.main(new String[]{});
}
}
The fallback class just start the same application, it works as all JavaFX componentes are used via reflection when available, but don't know how can i get the original args passed to the application.