Re: A EVENT conflict problem....
Posted By:
Eddie_Po
Posted On:
Friday, July 9, 2004 03:25 AM
try using a javax.swing.text.Document in your JTextField.
this class would do the necessary checking for the inputed characters via overwriting its insertString(...) method.
cheers. :)
Re: A EVENT conflict problem....
Posted By:
niklas_gustafsson
Posted On:
Thursday, July 8, 2004 12:17 AM
I had the same problems, but in my case i extended the
JOptionPane to set some common switches to prevent this.
It is not bad that the message got focus
this is the common way to use message-boxes.
Probably you get both a KeyAction and some FocusAction
In the FocusListener ( FocusLost ), you can
use some switch to sheck if the textField had focus
.
Print out something on the console from
the keyListener and the FocusListener so you can se
when they are fired.