-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
1.3.1
-
x86
-
windows_nt
Name: bsC130419 Date: 07/31/2001
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
When using InputVerifiers to validate keyboard input (for example, validating a
JTextField's text for correctly formatted data), it is impossible to display
relevant error messages in a popup message box (eg JOptionPane).
Displaying an error message in a popup window is a natural way to display
information to the user about erroneous input, and using InputVerifiers is the
best way in which to accomplish the validation, but combining the two
mechanisms causes problems presumably down to the fact that the JOptionPane
will try to grab focus away from the invalid field - which of course the
InputVerifier won't allow.
This problem is not resolved in JDK1.4 either in JTextFields or
JFormattedTextFields.
(Review ID: 125747)
======================================================================
- duplicates
-
JDK-4279934 Add alt. form of InputVerifier.shouldYieldFocus() with "to" comp as 2nd param
-
- Open
-