Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mouse clicks

 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I opened one JFrame, By the moment I click the mouse anywhere else on the desktop or anywhere. I have to close the JFrame. How can I close the JFrame.
waiting for reply.
regards
nr konjeti
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement FocusListener for the frame, and in focusLost(), dispose that frame.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic