JDK-6426246 : Win Vista: JTable's Column header's height is more in Windows LAF
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: generic
  • Submitted: 2006-05-16
  • Updated: 2010-04-02
  • Resolved: 2007-03-22
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.
Related Reports
Duplicate :  
The JTable column header's height is more in Window LAF on Windows Vista. 

To reproduce this:

1. Run the attached sample
2. Choose the Windows LAF in the combox box

Now you can see the Column Header's height is more than what it supposed to be. When you compare with the native, the height is twice as normal height. 

Build Information:
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b82)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b82, mixed mode, sharing)

EVALUATION this problem is reproducible on 1.6. It will be fixed along with 6434444 [Vista: JTable differs with native table in vista laf.]

EVALUATION This appears to have been fixed with some recent changes. I can't reproduce it on a more recent build of Mustang. It could have been a couple of things. There were some changes the margin calculations in JTable, some changes in the BasicTableHeaderUI regarding how header renderers calculate their preferred size, or small changes to the DefaultTableCellHeaderRenderer. Also the sizing of Windows buttons has changed slightly, which might have caused it. More research is required.

EVALUATION needs to be addressed in mustang