JavaFX Application hang when Toolkit.getDefaultToolkit() called before launch

Davin McCall davmac at davmac.org
Fri May 17 06:04:53 PDT 2013


Hi,

I have come across a bug when trying to run some JavaFX code. What it 
boils down to is that the javafx.application.Application's 
launch(String...) method hangs if Toolkit.getDefaultToolkit() is called 
previously.

Roughly:

     public static void main(String[] args)
     {
         Toolkit toolkit = Toolkit.getDefaultToolkit();
         launch(args);
     }

... is enough to cause the problem. The launch method hangs and the 
application's start(Stage) method doesn't get called. I have a complete 
test case (36 lines of code) if anyone is interested.

Is this a known bug? Should I file a bug report?

Thanks

Davin



More information about the macosx-port-dev mailing list