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

REGRESSION:only second click on tab of a TabbedPane will turn the page

XMLWordPrintable

    • b47
    • x86
    • windows_xp


      ###@###.### 2003-12-15

      J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b30)
          Java HotSpot(TM) Client VM (build 1.5.0-beta-b30, mixed mode)

      Does this problem occur on J2SE 1.3 or 1.4.x? Yes / No (pick one)
          No, works fine with 1.4.2

      Operating System Configuration Information (be specific):
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

      Hardware Configuration Information (be specific):

          Platform configuration:

          CPU: Intel 32bit Single Processor
          Processor Speed: 1893 MHz

          Operating System:
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

          DirectX version: DirectX 8.1 or greater

          DirectX display devices:
          Device 0:
            Resolution (width x height x depth): 1024 x 768 x 32
            Device driver nv4_disp.dll version 6.13.10.3638

          GDI display devices:
          Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 460 Go (Toshiba)

      Bug Description:
       When clicking on a tab (not already selected) of a TabbedPane which is
       contained inside a non-active internal frame, the page of that tab is not
       displayed, i.e. is not turn, not shown on the top of the TabbedPane.
       In other words, the first click actives the page, only the second click
       turns the page.

       The problem occurs only when the following property is set :
       setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);

      Steps to Reproduce (be specific):
       - Compile and execute the two source codes attached.
       - Click on a tab (not already on the top of the TabbedPane) and on a
         non-active internal frame.

            mbronsonsunw Mike Bronson (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: