Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Putting back JDialog

 
Raja Kannappan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic