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

Focus issue in a tabbedpane while updating to different laf.

XMLWordPrintable

      BugInfo:
      ========
      I found a focus issue in one of the case in the tabbedpane.I have written a test which is used to add/insert/remove/removeall the tabs using popupmenu.The popupmenu will show whenever right click on the tabbedpane.

      I expected,the popupmenu should gain the focus from the tab whenever it shows up on the application and user can able to traverse the items in the popupmenu using up/down arrows or mouse in the following scenario.But i was seeing the focus problem after switching to different look and feels and performing same action.

      In the scenario1,applying the look and feel while launching the test.
      In the scenario2,after launching the test switching to different look and feel through programatically.

      I was seeing this behavior on solaris,linux and windows falvors.

      Scenario1:(It has meet the expected behavior)
      ==========
      1. Run the attached testcase using the latest JDK on either solaris or linux os.
      ${JAVA_HOME}/bin/java TabPaneWithAddInsertRemovePopupOptions
      2. Right click on tabbedpane and then it shows up popupmenu.
      3. Now choose the Add option.It will add new tab in tabbedpane.
      4. Right click on tab which has lead border and focus.
      5. Now keep press down arrow.

      Expected Behavior:
      ==================
      The lead border and focus should go off and the selection bar in popupmenu should move down and focus should be on popupmenu.

      Actual Behavior:
      =================
      Lead border and focus goes off and selection bar moves down in the popupmenu.

      Scenario2:(It has not meet the expected behavior)
      ==========
      1. Run the attached testcase using the latest JDK on either solaris or linux os.
      ${JAVA_HOME}/bin/java TabPaneWithAddInsertRemovePopupOptions -ulaf
      2. Right click on tabbedpane and then it shows up popupmenu.
      3. Now choose the Add option.It will add new tab in tabbedpane.
      4. Right click on tab which has lead border and focus.
      5. Now keep press down arrow.

      Expected Behavior:
      ==================
      The lead border and focus should go off and the selection bar in popupmenu should move down and focus should be on popupmenu.

      Actual Behavior:
      =================
      Lead border and focus still on tab and selection bar is not moving down in the popupmenu and it has not gain the focus.

      JDK Info:
      =========
      java version "1.6.0_01-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_01-ea-b03)
      Java HotSpot(TM) Client VM (build 1.6.0_01-ea-b03, mixed mode, sharing)

      Please find the attached java file.

            Unassigned Unassigned
            vthotasunw Vinay Thota (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: