I am building a JavaFX app and am using JOptionPane to display dialogs
One of the problems I've encountered is that creating a new dialog and not dismissing it within 5 or so seconds will cause the main JavaFX stage go into a 'Not Responding' state
Running the joptionpane code in a new thread works, but causes the dialog not to be modal, which is not suitable for the app i'm building
This is all running in Windows.
Any ways to fix the not responding problem would be greatly appreciated :)
EDIT: The code I use is (from the main JavaFX thread)
JOptionPane.showMessageDialog(null, "message here");
Perhaps null is causing the problem?