JDK-5004314 : REGRESSION: Vertical alignment of JTabbedPane tab text is wrong under Win L&F
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-02-26
  • Updated: 2004-04-24
  • Resolved: 2004-04-24
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.
Other
5.0 beta2Fixed
Related Reports
Relates :  
Description

Name: rmT116609			Date: 02/26/2004


FULL PRODUCT VERSION :
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The text inside JTabbedPane tabs is not vertically centered as it was in JDK 1.4.x. It does not match native windows components L&F.

See http://www.netbeans.org/issues/show_bug.cgi?id=40045 for a screenshot of the problem.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Using the SwingSet2 demo, if you select the Windows L&F, then click on any tab (say "Internal Frames Demo") 
you will notice there is no space above the text "Internal Frames Demo". Whereas, if you compare this behavior to 
DISPLAY PROPERTIES (native Windows control-panel application) there is always vertical spacing above the tab text.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java JTabbedPane tab matches Windows (native) tabs L&F

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Incident Review ID: 239766) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-beta2
14-06-2004

EVALUATION Added one pixel to TabbedPane.tabInsets.top for XP in WindowsLookAndFeel. ###@###.### 2004-04-08 The regression was due to a font change caused by fix for bug 4918331. ###@###.### 2004-04-12
08-04-2004