File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to catch keyboard scrolling buttons event? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to catch keyboard scrolling buttons event?" Watch "how to catch keyboard scrolling buttons event?" New topic
Author

how to catch keyboard scrolling buttons event?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
onKeyPress is for all the buttons, I need sth specific to up, down, right and left arrow key.

TIA.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Look at the keycode of the presses. They have ids.

Eric
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Eric Pascarello:
Look at the keycode of the presses. They have ids.

Eric


Thanks Eric.

But surprisingly, I am able to capture all the keys except up, down, right and left arrow key.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks a ton Eric.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to catch keyboard scrolling buttons event?
 
Similar Threads
About GUI
What is it with the necktie?
Convert working program to display in GUI
calling another GUI class
an array of buttons in an applet ?