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

Disposing Dialog nullifies TextField.requestFocus() call

XMLWordPrintable

    • b02
    • x86
    • windows_nt

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: