Re: Lock the screen

2002-04-19 Thread James Brundege

It sounds like he wants to lock you out of all OS processes, not just the
one running the java app.  This would surely require some native OS-specific
code.  Otherwise, you can always just switch out of the process running the
VM.

James


- Original Message -
From: Greg Munt [EMAIL PROTECTED]
To: Andrei POSTOLACHE [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, April 19, 2002 3:14 AM
Subject: Re: Lock the screen


 Wouldn't a simple modal dialog work?

 - Original Message -
 From: Andrei POSTOLACHE [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 18, 2002 4:31 PM
 Subject: Lock the screen


  How can i lock the screen with swing? Just like a screen saver does when
  ascking for a password. I'm messing around with KeyEvent and awt.Robot,
bu
  the solution is not complete. Is there a better way?
  Thanks
 
  --
 
  --
  Dowsed in mud, soaked in bleach
  Andrei Postolache
  --
 
  ___
  Advanced-swing mailing list
  [EMAIL PROTECTED]
  http://eos.dk/mailman/listinfo/advanced-swing
 


 ___
 Advanced-swing mailing list
 [EMAIL PROTECTED]
 http://eos.dk/mailman/listinfo/advanced-swing



___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing



MouseEvent ClickCount

2002-04-04 Thread James Brundege

Hey all,
This should be simple, but I'm baffled.  I have a component that responds to
a double click.  I detected the double-click with a mouse adapter:
public void mouseClicked(MouseEvent e) {
if ( e.getClickCount() == 2 ) {

The problem is that the duration over which the mouse clicks are held seems
long to me.  If a user double-clicks twice in succesion, the 2nd one is
ignored because the clickCount is now 3 or 4.  On the other hand, if they
wait one second and then click once, it responses because the clickcount
fell to one, then rose back to 2.

The easy solution would be to reset the clickCount to 0 after a double-click
is registered.  However, I can see no way to do this.  Does anyone have a
solution to this (certainly common) problem?

Thanks,
James Brundege


___
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing