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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6u10, 7
    • 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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: