Results 1 to 1 of 1
- 03-25-2011, 03:05 PM #1Member
- Join Date
- Mar 2011
- Rep Power
Im trying to use the setVerifyInputWhenFocusTarget(false) method from the javax API. However i've come against some problems which I wondered if anyone could help with.
Basically, I have a DataField whose input needs to be verifed. However, I dont want the data to be verifed when the user clicks cancel or when they click on the menu toolbar. Now setVerifyInputWhenFocusTarget(false) works fine for the cancel button (JButton). However, it ignores the request not to verify the data when they click on the menu bar (either JMenu, JMenuBar, JMenuItem).
Does anyone know if there is a problem using these particular parts of Swing when verifying text input?