Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4486518

InputVerifiers cannot use message boxes to display error info

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.1
    • client-libs



      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)
      ======================================================================

            joutwatesunw Joshua Outwater (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: