Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Listeners

Status
Not open for further replies.

jjinx

Programmer
Oct 6, 2002
12
US
I have an application that contains a JTextArea and a graphical representation of a key board that is a series of JButtons

I need to have action listeners for the keys and
I also a key listner.

So if the user types an A on their keyboard it would process the same as if they clicked on the A button.

My problem is that once I add a component that has an action listener associated with it to the content pane
the key listener ceases to function. WHY?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top