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

Disposing Dialog nullifies TextField.requestFocus() call

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.1_002
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      x86
    • OS:
      windows_nt

      Backports

        Description

        Customer is using JDK1.2 on Windows.

        When changing panels in a java.awt.Frame, and using a dialog as a popup message
        during the transition between panels can cause erratic behaviour in the application/applet, including requestFocus() and mouse problems. In the test case provided, the focus should always be set to the java.awt.TextField. However, because a message dialog is shown and disposed during the panel transition, the focus stays on the first object added to the layout manager. If you comment out the call to "dlg.dispose" in the closeDlg method, then the
        focus is always given to the java.awt.TextField in the each panel which
        is the desired behavior. The testcase is located in the attachments.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  myangsunw Mingyao Yang (Inactive)
                  Reporter:
                  atongschsunw Albert Tong-schmidt (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: