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?
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?