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

Incorrect tab titles for JTabbedPane if using HTML (BasicTabbedPanelUI problem)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u10, 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b97
    • CPU:
      x86
    • OS:
      windows_xp, windows_vista
    • Verification:
      Verified

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.7.0-ea"
        Java(TM) SE Runtime Environment (build 1.7.0-ea-b24)
        Java HotSpot(TM) Client VM (build 12.0-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.0.6000]

        A DESCRIPTION OF THE PROBLEM :
        Tab titles are not shown correctly if HTML titles are used. There is problem in BasicTabbedPaneUI$Handler.updateHtmlViews() - there is htmlViews.insertElementAt(v, index); instead of htmlViews.setElementAt(v, index); so new view is added (to already preallocated vector) - this shifts/breaks others.



        REPRODUCIBILITY :
        This bug can be reproduced always.
        bug reported to NB IDE has 5 duplicates and 4 votes already
        http://www.netbeans.org/issues/show_bug.cgi?id=113388

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alexp Alexander Potochkin (Inactive)
                  Reporter:
                  ndcosta Nelson Dcosta (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: