开发者

how to make a JDialog never on top (within one application, not system-wide)

开发者 https://www.devze.com 2023-03-13 13:28 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消