This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Putting back JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Putting back JDialog" Watch "Putting back JDialog" New topic
Author

Putting back JDialog

Raja Kannappan
Ranch Hand

Joined: May 08, 2002
Posts: 83
I've a modal JDialog. From this modal JDialog, I'm opening a new non-modal JDialog. When I get the focus back to my first window, I want my second JDialog to go back (not hide).
I tried implementing focusListener and in focusLost() I'm calling toBack(). But, when I go back to my first window, focusLost() is not all called.
Any other ideas or suggestions on how to do this?
Thanks,
- Raja.


SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Putting back JDialog
 
Similar Threads
JDialog? - parser status window
creating my own dialog box
Taskbar Iconless JFrame?
Correct behaviour when launching a new window and getting rid of the first window
JDialog questions