[HOW TO] Make a non-modal DialogWrapper to stay on top?

How can i make a DialogWrapper to stay on top but still be non modal? I see this is possible by looking at the "Find / Replace in Path" dialogs. You can click away from the dialog in the main window for copying stuff for example, but the dialog always stays on top.

2 comments
Comment actions Permalink

Hello Dan,

How can i make a DialogWrapper to stay on top but still be non modal?
I see this is possible by looking at the "Find / Replace in Path" and
dialogs. You can click away from the dialog in the main window for
copying stuff for example, but the dialog always stays on top.


Have you tried DialogWrapper.setModal(false)?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Indeed, it is as simple as that. Was expecting a non modal dialog to float somewhere behind the main window. Guess my awt/swing skills are not the strongest...

0

Please sign in to leave a comment.