It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes adding keyevents to scrollbars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "adding keyevents to scrollbars" Watch "adding keyevents to scrollbars" New topic
Author

adding keyevents to scrollbars

george justin
Greenhorn

Joined: Jul 31, 2001
Posts: 25
Hi
can anybody help me out in mapping keyevents to scrollbars, the UP,DOWN,LEFT,RIGHT keys as i am not suppose to use mouse on TV applications......
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
why - does this not work by default?
if not: the component that should listen to the cursor keys must have the focus. attach a keylistener to it. I think this component is rather the component inside the scrollpane than the scrollpane itself (that is if your working with swing).
chantal
 
 
subject: adding keyevents to scrollbars