JDK-4310381 : Text in multi-row/col JTabbedPane tabs can be truncated/clipped
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.0.2,1.3.0,1.4.1,7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.5.1,windows_nt,windows_xp generic,solaris_2.5.1,windows_nt,windows_xp
  • CPU: generic,x86,sparc
  • Submitted: 2000-02-07
  • Updated: 2013-06-26
  • Resolved: 2012-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u40Fixed 8 b34Fixed
Related Reports
Duplicate :  
Duplicate :  
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.

        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.

EVALUATION We should clip long TAB titles

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

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang