I’m developing a GUI using some FlapDockStation and I noticed that when showing a modal dialog (like ones generated by JOptionPane) and a Dockable is shown in a FlapDockStation, is possible to click in the dockable sending back the modal dialog.
Is there a work around for this problem?
The FlapDockStation uses a JDialog to show the dockable, but that JDialog is not modal. I was really convinced that a modal dialog would block any other Window. I’ll have to test this myself and think of some solution, if I have a good idea I’ll include it in the next release. What Java-version and what Operating System are you using?
[Edit: I’d like to add, that I cannot reproduce the issue on Windows, Java 1.6]
I’m using Windows XP and Java 1.6. I’m try to reproduce the problem in a small example but without success until now. I’ll post the code if and when I will be able to reproduce it.
Setting parent window solved the problem. But the very strange thing is that it appered only clicking on dockables shown in a FlapDockStation placed on west, while clicking on dockables shown on south or east does not influences the modal behavior.
This may be interesting to investigate.