JDK-5089821 : The TabbedPane Border is cut at the bottom in GTK LAf unlike native.
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:5.0
Priority:P4
Status:Closed
Resolution:Fixed
OS:solaris_10
CPU:sparc
Submitted:2004-08-20
Updated:2010-07-09
Resolved:2011-03-07
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.
The TabbedPane Border is cut at the bottom in GTK LAf unlike native.
Please see the attached image for more information.
The Machine info:
Sol10, JDS release 3, sparc
EVALUATION
The selected tab is padded with insets, by default (2,2,2,1). For TOP placement, we add 2 pixels to the bottom which are painted "behind" the tabbed pane.
Another problem is that we don't paint the gap correctly, it is shifted one pixel to the right. In gtk_paint_box_gap(), gap start coordinate is relative to the left corner of the box. We don't adjust for that, so our gap is shifted by the value of left inset.
As the tab is now 2 pixels shorter, we need to adjust text position, too. In GTK, text is drawn much closer to the pane.
12-01-2007
EVALUATION
This is the case for pixmap themes as shown in the example. This may affect all themes and should be reviewed. The bounding box for the tabs may be incorrect.