Reputation: 43
I have a desktop application written with Swing, I've incorporated a JavaFX component to my application through JFXPanel. Everything runs fine but just one time. When I close the JFrame with the JavaFX components and later try to open it again by creating new JFrame, the space with the JXPanel is empty.
Platform.runLater(new Runnable() {
public void run() {
Scene scene = new Scene( mainPane );
setScene(scene);
}
});
this is how I run the JFXPanel.
Upvotes: 2
Views: 94