Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #270

Re: Listening to Mouse le

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this>
Subject Re: Listening to Mouse le
Message-ID <4t80bbF12f6nnU1@mid.individual.net> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1164883540.536184.161880@j72g2000cwa.googlegroups.com>
References <1164883540.536184.161880@j72g2000cwa.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 28
Date Wed, 27 Apr 2011 15:26:34 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303917994 96.60.20.240 (Wed, 27 Apr 2011 10:26:34 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:26:34 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:270

Show key headers only | View raw


  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 | NextPrevious in thread | Next in thread | Find similar


Thread

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