United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4310381 Text in multi-row/col JTabbedPane tabs can be truncated/clipped
JDK-4310381 : Text in multi-row/col JTabbedPane tabs can be truncated/clipped

Details
Type:
Bug
Submit Date:
2000-02-07
Status:
Resolved
Updated Date:
2013-06-26
Project Name:
JDK
Resolved Date:
2012-04-10
Component:
client-libs
OS:
windows_nt,solaris_2.5.1,generic,windows_xp
Sub-Component:
javax.swing
CPU:
x86,sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.0.2,1.3.0,1.4.1,7
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:
Duplicate:

Sub Tasks

Description
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.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-25
EVALUATION

Name: pzR10082			Date: 05/15/2000


Tabs in second, third etc runs are placed `under' the previous
run. So small piece of each such tab is covered. Its width is
small (2 pixels) under Windows LAF so this problem is not seen
under Windows LAF.

###@###.###


======================================================================
###@###.### 2003-04-24
The bug isn't reproducible for Metal L&F since 1.4
and it isn't reproducible for Motif L&F since 1.4.2 as a consequence of
the fix 4691522. I've found the described problem only for Windows L&F for the
top placement. We need to remove a tab run overlay for Windows L&F.
###@###.### 10/13/04 18:57 GMT

I've found some stranges with JTabbedPane when its size is not enough to paint the tabs for sevaral LaFs. Fixing it is not simple and might be risky, will return to this bug later

###@###.### 2005-06-11 13:36:13 GMT
                                     
2005-06-11
EVALUATION

We should clip long TAB titles
                                     
2012-03-23



Hardware and Software, Engineered to Work Together