Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDialog and always on top problem

843785Dec 6 2008 — edited Dec 7 2008
when I set jDialog1.setAlwaysOnTop(true); dialog component stays on top no matter what. Even when I minimize the main frame/program, that dialog component is still there.

if I make it setAlwaysOnTop(false), any click on the main frame will make my dialog go away.

How can I code it so the JDialog stays on top of everything else as long as the main program is still open.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2009
Added on Dec 6 2008
9 comments
2,116 views