JDK-4151646 : Metal L&F: tabcard not shortened to fit small widths, also text not clipped
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.0.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1998-06-23
  • Updated: 2001-05-04
  • Resolved: 2001-05-04
Related Reports
Duplicate :  
Relates :  
when you have enough tabs that they don't fit into a single row (this is in the normal tabs-on-top configuration),

AND the window is so narrow that it cannot even accomodate the width of 1 tab,

1) the tab outline for the 1st row is clipped, while the tab outline for subsequent rows' tabs are shortened to fit.  (Inconsistent: all tabs should be drawn to fit and never get clipped).

2) the text labels are not clipped to the interior of their tabs, but overflow into the rest of the area and get clipped by it.  Probably not calculating font metrics properly to size the text to fit under these circumstances.

reproducible by running SwingSet and making the window about 1 inch wide (the minimum).

EVALUATION The tabs should not resize to being too small to fit their enclosed text. The first row is doing it right and subsequent rows are doing it wrong. tom.santos@eng 1998-09-15