2012-05-08 17 views

risposta

10

La nuova fase è stata creata sul "thread dell'applicazione JavaFX"?

provare la prossima:

javafx.application.Platform.runLater(new Runnable() { 

     @Override 
     public void run() { 
      Stage stage = new Stage(); 
      stage.setScene(new Scene(new Group(new Button("my second window")))); 
      stage.show(); 
     } 
    }); 

operazioni Tutto FX UI devono essere eseguiti su "JavaFX Application Thread", vedere http://docs.oracle.com/javafx/2/architecture/jfxpub-architecture.htm#sthref8

Problemi correlati