• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tying timing data capture to key events.

 
Ruth Gow
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ruth Gow
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Err, syntax, I think.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic