how to make a JDialog never on top (within one application, not system-wide)
I have a GUI with several JDialogs, 2 or 3 of which are "basic" big ones, and should therefore be "never on top" of others (small ones).
I think using "always on top" on the other JDialog would be a solution, but 开发者_开发问答is not exactly what I'm trying to achieve.
any tip welcome, thanks !
If you are using 1.6, maybe playing around with ModalityType and ModalExclusionType will help you. Note that modalitytype and modalexclusiontype are only available in 1.6 onwards
Sounds like your large JDialogs might need to be JFrames instead.
Another option: Use a JDesktopPane and use JInternalFrame.
Third option: Use a Layered Panes to control the ordering of items.
精彩评论