This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: adding keyevents to scrollbars
 
Similar Threads
howto make popup form scrollable
key listeners..
I Want to disable keys when my application is running
overlay window
Customised scroll bar within Div tag?