Results 1 to 2 of 2
  1. #1
    oontvoo is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default Add KeyListener to a button/panel

    Basically, I have a panel containing a bunch of buttons. I'm trying to add some keylisteners to the buttons and/or the panel so that when I type the corresponding keys on the keyboard, the buttons will be clicked.

    Any idea how to to do this?

    Thanks,

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

Similar Threads

  1. panel on a panel not visible
    By warchieflll in forum Advanced Java
    Replies: 2
    Last Post: 01-29-2011, 09:29 PM
  2. How to catch a button event that is in a Panel
    By Sandia_man in forum AWT / Swing
    Replies: 14
    Last Post: 12-14-2010, 05:33 PM
  3. show panel when button clicked
    By Aggror in forum New To Java
    Replies: 6
    Last Post: 10-14-2010, 05:05 PM
  4. Add panel to parent panel
    By LovJava in forum AWT / Swing
    Replies: 10
    Last Post: 09-02-2010, 09:43 PM
  5. Adding a panel to a panel
    By rclausing in forum New To Java
    Replies: 7
    Last Post: 02-02-2010, 06:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •