JButton ActionListener Behavior
posted 4 years ago
I have a problem with a JButton that I do not understand. My input pane collected some data and when the correct button is clicked, it processes the data, clears the fields and waits for another button action. The 'Quit' works just fine as it simply does a frame.dispose(). It is the 'Submit' button that is behaving strangely. It appears that it goes into an unending loop running the ActionListener. The button also displays as clicked and stays that way. Do I need to somehow reset that button in the ActionListener or should I be looking elsewhere for a unending loop? TIA.