aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
jQuery in Action, 2nd edition
 
subject: adding keyevents to scrollbars
 
Similar Threads
I Want to disable keys when my application is running
key listeners..
howto make popup form scrollable
overlay window
Customised scroll bar within Div tag?