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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 6u10, 7
    • Component/s: client-libs
    • b97
    • x86
    • windows_xp, windows_vista
    • Verified

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: