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

Text in multi-row/col JTabbedPane tabs can be truncated/clipped

XMLWordPrintable

    • b34
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_nt, windows_xp

        Name: krT82822 Date: 02/06/2000


        java version "1.3.0rc1"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
        Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

        If you put the tabs on the right or left and have so many tabs
                that the tabs require more than one column, the text on the tabs
                "under" the first layer can be clipped. Whether the text is clipped
                depends on how long the text is in relation to the size of the tabs.

                Example,
                run SwingSet2 from JDK 1.3
                Choose tab placement to be on the right
                resize the screen so the tabs don't fit in one column.
                The "Bouncing Babies!" text is clipped.

                This is true for the JAVA L&F and Motif L&F (Windows L&F looks OK)

        ---------------

        2/6/2000 eval1127@eng -- couldn't reproduce the problem of a string getting truncated horizontally (i.e., having a string be "too wide").
        The only arrangement that looked really bad when I tested was when labels were placed on top, with multiple rows present. In this config,
        the bottom portion of the "Bouncing Babies" label (which was in the first/topmost row) got chopped (will attach the image to the bug)
        (Review ID: 100662)
        ======================================================================
        ###@###.### 10/13/04 18:57 GMT
        There is one more problem. JTabbedPane sometimes can allow the tab caption to extend out of the tab border. It can be reproduced with SwingSet2. See JTabbedPaneNotClippedText.bmp screenshot in the attachment.

        I reproduced it under jdk7 b14.

              rupashka Pavel Porvatov (Inactive)
              kryansunw Kevin Ryan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: