Guest_imported
New member
- Jan 1, 1970
- 0
Here is the problem:
I have a JPanel (Lets say Panel1) with some components on it, another JPanels, JTextBoxes, JComboBoxes,...
I need to make a JDialog appear when the user presses one of the Function buttons on the keyboard.
What listeners should I add to Panel1 to do this? Do I need to add this same listeners to all the components also?
What I need is that regardless where the focus is when I press a specific Function button this JDialog will appear. It seems stupid if I have to add listeners to all the components inside the panel since there are a lot of them.
Please give some detail about this subject.
Any help is apreciated.
Thank you all
I have a JPanel (Lets say Panel1) with some components on it, another JPanels, JTextBoxes, JComboBoxes,...
I need to make a JDialog appear when the user presses one of the Function buttons on the keyboard.
What listeners should I add to Panel1 to do this? Do I need to add this same listeners to all the components also?
What I need is that regardless where the focus is when I press a specific Function button this JDialog will appear. It seems stupid if I have to add listeners to all the components inside the panel since there are a lot of them.
Please give some detail about this subject.
Any help is apreciated.
Thank you all