hdijkema / seaglass

Automatically exported from code.google.com/p/seaglass
0 stars 0 forks source link

Overlength titles on tabs in JTabbedPane #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter a long text as a title for a tab.

What is the expected output? What do you see instead?
Truncated text if it does not fit but it paints over the borders.

To fix the issue put in the file 
com.seaglasslookandfeel.ui.SeaGlassTabbedPaneUI before the line 903 the 
following code:

FontMetrics fm = SwingUtilities2.getFontMetrics(tabPane, g);
title = SwingUtilities2.clipStringIfNecessary(tabPane, fm, title, 
textRect.width);

Original issue reported on code.google.com by rosstaus...@googlemail.com on 9 Oct 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Hi,
This is already fixed in the integration_rossi branch.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 15 Feb 2011 at 7:12

GoogleCodeExporter commented 9 years ago
This issue is fixed in sealglass 0.2 that we just have released.
Please give this new version a try.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 25 Jun 2012 at 8:44