This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I keep a dialog box on top?