File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes mouse clicks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "mouse clicks" Watch "mouse clicks" New topic
Author

mouse clicks

narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
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


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Implement FocusListener for the frame, and in focusLost(), dispose that frame.
 
Consider Paul's rocket mass heater.
 
subject: mouse clicks