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

PIT: requestFocusInWindow transfers focus to a component in a frame which is not having focus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 6
    • 6
    • client-libs
    • b24
    • x86
    • windows_2000, windows_xp
    • Verified

    Description

      The testcase AWT_Focus/Automated/Lw/RequestFocusInWindowTest fails in the PIT build on Windows platform. It passes in mustang b13.

      The testcase popups two frames. It transfers the focus to the second frame, calls requestFocusInWindow method on a component in the non-focused frame. With the PIT build, focus is transferred to the first frame and to the component, whereas it does not happen with b13. This occurs only on Windows platforms.

      To reproduce:

      Attached is the automated testcase
      Compile the java files and run the testcase as follows:
      $JAVA_HOME/bin/appletviewer -Xnosecurity -J-classpath -J<path to awtsqe.jar>/awtsqe.jar RequestFocusInWindowTest.html

      awtsqe.jar is needed for the testcase to compile and run. It can be obtained from /net/sqesvr-nfs.sfbay/global/nfs/ws1/6.0_int/awt/share/lib/awtsqe

      Attachments

        Issue Links

          Activity

            People

              ant Anton Tarasov (Inactive)
              gramachasunw Girish Ramachandran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: