aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Tying timing data capture to key events. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Tying timing data capture to key events." Watch "Tying timing data capture to key events." New topic
Author

Tying timing data capture to key events.

Ruth Gow
Greenhorn

Joined: Jun 11, 2001
Posts: 4
Hi. This is kinda difficult to explain - I'm writing a user login program and need to be able to collect timing data - time between keystrokes and keyholds - for each password entered. I'm trying to get a KeyListener to record the time (at the moment currentTimeMillis...) for each key press and each key release on a normal password dialog. Any ideas?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well it sounds like you are doing it just fine. Put a KeyListener on your JPasswordField or your JDialog and listen for KeyEvents.
So what exactly is it that you AREN'T sure about.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ruth Gow
Greenhorn

Joined: Jun 11, 2001
Posts: 4
Err, syntax, I think.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tying timing data capture to key events.