JTextField sometimes doesn't take any input
843806Aug 14 2007 — edited Jan 8 2008I have a peculiar problem. I am developing a swing application, and sometimes when the application is started, all JTextFields throught the entire application don't respond to almost all keyboard inputs. The JTextFields in JComboBoxes, JTables, JLists are also affected, even JFormattedTextField. The only keys which work are enter, backspace and delete. Copy/paste (CTRL+C, CTRL+V) does for some reasons also work. The bug is persistent during the entire lifetime of the JVM.
JPasswordField displays the echo-char when typing.
At the moment the only way to solve the problem is restarting the application.
I have not been able to create a test case, which reproduces the behaviour. The last half year this have occured perhaps 5 times. This bug in our software has only occured the last half year (the software is approx 6 years old, constantly expanding). Before the first occurence of the bug was discovered, we used java 1.4.2. We switched to 1.5.0_10-bc3 in the beginning of this year, and first then we have been having this strange JTextField bug. It could be a coincidence, but that is all the lead I have for the moment.
Sorry for the vague description of the problem, but I cannot reproduce it properly. There is no indication whatsoever where the problem may be.