On 10/25/2016 2:15 AM, Sergey Bylokhov wrote:
Probably this clipping should be done in the
633 paintText(ss, g, tabPlacement, font, metrics,
634 tabIndex, clippedTitle, textRect, isSelected);
?
It should be designed in the same way as in basic class. Currently the
BasicTabbedPaneUI#paintText() receives pre-clipped text to paint and the
clipping is executed in the paintTab().
It seems that currently this method contradicts its specification and
skips the w/h of the passed bounds(in this case "textRect").
I don't see any mentions of text clipping in this spec.
On 21.10.16 15:12, Semyon Sadetsky wrote:
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8075918
webrev: http://cr.openjdk.java.net/~ssadetsky/8075918/webrev.00/
Title text clipping capability is added to the Synth L&F's tabbed pane
UI to fix the issue.