• Post Reply Bookmark Topic Watch Topic
  • New Topic

I'd to have the JDialog dispose when the focus is lost

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code will not dismiss the MemoryDateDialog when it loses focus
while it is what it is intended to do.
Thanks
Jack
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add any debug code to see if the FocusListener is invoked?

Where is your SSCCE?
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an easy solution to this problem.

You have been asked to provide more information. Why do you ask questions if you are not interested in the answer?
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:There is an easy solution to this problem.

You have been asked to provide more information. Why do you ask questions if you are not interested in the answer?


Hello Rob,
I have solved it by using the windowfocuslistener.
It works pretty well, although sometimes weird.
Thanks
Jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!