This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About JDialog's Z-order . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About JDialog Watch "About JDialog New topic
Author

About JDialog's Z-order .

Zhou Can
Ranch Hand

Joined: Sep 12, 2002
Posts: 34
My assignment firstly show a JDialog to config the connection to local or remote database ( at this time , the main JFrame is not visible ). But if i click other program ( even DOS console ) before the JDialog appear , the JDialog will not be shown to user . I think there may be some things wrong with the setting of this JDialog's Z-order . please help me . BTW , i set the JDialog shown modally.
Eric Blische
Greenhorn

Joined: Feb 02, 2003
Posts: 16
Hi Zhou,
I would try something like this ...
Eric Blische
Greenhorn

Joined: Feb 02, 2003
Posts: 16
Hi Zhou,
I would try something like this ...

I *think* this will accomplish what you need, coercing the dialog to come to the front while recognizing that it is modal.
Another possibility is to overload the setVisible
method of the dialog to invoke the superclass setVisible but also add a toFront().
Two ideas off the top of my head....
Eric
Zhou Can
Ranch Hand

Joined: Sep 12, 2002
Posts: 34
Thanks , Eric .
With ur help , I have solved that .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About JDialog's Z-order .
 
Similar Threads
setting a window as "always on top"
JFC
JDialog setModal() hierarchy
get jdialog's new location after mouse drag
Annoying quirk with JDialog on Windows 7