Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes How do I keep a dialog box on top? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do I keep a dialog box on top?" Watch "How do I keep a dialog box on top?" New topic
Author

How do I keep a dialog box on top?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a dialog box that is my login screen, but if a user clicks anywhere outside the dialog window, it is hidden behind everything, and I have to either minimize every window, or do a ALT-TAB to get the dialog box back.
Any ideas?
Thanks
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
hi raul,
is'nt ur dialog modal. coz this problem should not be there with modal dialogs
regards
deekasha
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
It is modal, however, it is only modal for the application enviornment, not the entire windows enviornment. Since this is the log in for the app, it is only a small window. Any where outside of this dialog box does not belong to the app enviornment and when clicked, the dialog box is hidden and can only be brought up like I posted earlier.
Thanks
Anyone else?
 
GeeCON Prague 2014
 
subject: How do I keep a dialog box on top?