I know that's maybe noob question and lot of others can find it useless, but I would be glad if someone could help me.
In every tutorial I saw making applications in JavaFX static like so:
public class TestingApp extends Application
{
@Override
public void start( Stage primaryStage )
{
...
}
public static void main( String[] args )
{
launch( args );
}
}
but is there some way to define it non-static like so?:
public class TestingApp extends Application
{
@Override
public void start( Stage primaryStage )
{
...
}
public TestingApp() {}
}
public class Main
{
public static void main( String[] args )
{
TestingApp ta1 = new TestingApp()
TestingApp ta2 = new TestingApp()
ta1.launch( args )
ta2.launch( args )
}
}
I already saw this: Starting a second JavaFX Application, but it doesn't solve my problem.