Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #270
| From | "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Listening to Mouse le |
| Message-ID | <4t80bbF12f6nnU1@mid.individual.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1164883540.536184.161880@j72g2000cwa.googlegroups.com> |
| Date | 2011-04-27 15:26 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On 30.11.2006 11:45 James Appleby wrote: > Hello, I'm having difficulties implementing a requirement for an > application I'm writing and I'm hoping someone can help. I have a > JFrame that sits on top of the desktop and has various input fields in > it. The requirement is that when the user leaves the frame to use > other applications the data is submitted for processing. > > I have tried to implement this using a MouseListener. (I know it would > miss Alt-Tab or other none mouse navigation but I felt it worked for my > user group.) Wouldn't a WindowFocusListener be more suitable for this problem? You'll be notified when the user makes your application the active one, and when the user makes a different application the active one. No need to watch for MouseEvents unless you want the moving of the mouse outside the frame without activating a different application/window to already submit the data Thomas --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Listening to Mouse leavin "James Appleby" <james.appleby@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Listening to Mouse le "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Listening to Mouse le "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Listening to Mouse le "James Appleby" <james.appleby@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Listening to Mouse le "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: Listening to Mouse le "James Appleby" <james.appleby@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
csiph-web