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

BasicTextUI.setSize() can restore focus incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • None

      The fix to 4465905 changed BasicTextUI to reinstate focus after invoking setSize on the root view. This corrects the problem where HTML form text fields, displayed in a JEditorPane, were losing focus when typing in them. Unfortunately it adds a negative side effect.

      The attached test program shows the problem. It is a simple editable JEditorPane with two form text fields. Click on one field to give it focus. Now try to click on some text in the JEditorPane. Notice that focus jumps back to the text field. This is undesirable.

            shickeysunw Shannon Hickey (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: