• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding keyevents to scrollbars

 
george justin
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic