I have created java swing application. In that application, there is a textfield.I have attached key listner for that text field also. Using that, enter key is identified and popup another JPanel. There is a JTable which is loaded data from DB and there is a JButton. The selected row from that table is loaded to that previous textfield.
There is a very rare issue with that implementation. when we have that JPanel, mistakenly the user pressed the enter button twice in very very short period at once. Then after we load that panel ther is a unusal behavior. by default the JButton is pressed without any key pressed.
According to my investigation, the problem can be solved, if we have a method to cler keylistner actions once it finished.
Are ther any methods?