setDefaultButton on Individual Jpanels that are part of a Wizard
Posted on 2006-05-19
I have a number of Java classes which extend the JPanel with next , prev, apply, etc buttons on them. All of these classes are part of a Wizard. The wizard knows what class to call whenever a button is pressed.
The Question i want to ask is how do I set the Default button on the "Next" button on each of the individual classes wheneve the enter key is pressed.
I cannot change the component type as it is tightly coupled so the soln needs to be based on what I have.