Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about JDialog

Status
Not open for further replies.

frag

Programmer
Dec 7, 2000
321
GB
Hi!

I am using a modal JDialog in an application (login dialog). It's called in a JFrame and is the first thing that you will see after starting the application. My problem is that there is no symbol/button for this dialog in the Windows taskbar... if the JDialog is closed there is a symbol/button for the application in the taskbar. Is there a way to get this for a JDialog as well? If not then it would be ok to force the JDialog to be in top of all other applications... but I don't know how to solve this as well... :-(

Any help appreciated

cheers

frag

patrick.metz@epost.de
 
The only way I've found around this problem is to use another JFrame rather than using a JDialog. This will put an entry on the taskbar.
 
Hmmm... I could have guessed that. But can a JFrame be modular (that means I can only continue if the dialog was processed)? Or is there a way to bring the JDialog on top of all other windows/applications? This would help a lot.

patrick.metz@epost.de
 
No, I haven't found a way to make a JFrame modal. And I also haven't found a way to keep a JDialog on top, either. But at least if the dialog is a JFrame, you have something on the taskbar to click on if it gets hidden.

 
Ok thank you anyway...

patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top