• Post Reply Bookmark Topic Watch Topic
  • New Topic

KeyListener

 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
How do i add a keylistener to a panel/jscrollpane/frame/container? I tried adding it to those components like, panel.addKeyListener(this) blah blah and then eclipse asks me to make my class abstract. but if i make it abstract i have to make the methods static and make other classes not reference the class i'm adding a keylistener to... *sigh*... any short way to do this?
thanks
rocky
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!