JDK-6434444 : Vista: JTable differs with native table in vista laf.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp,windows_vista
  • CPU: generic,x86
  • Submitted: 2006-06-06
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
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.
JDK 6 JDK 7
6u4Fixed 7 b20Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Bug Info:
=========
JTable differs with native table in the following cases.

1. The native table shows the blue color for 'sort marker arrow' and 'sorted column header' but the JTable shows the gray color for both 'sort marker arrow' and 'sorted column header' in vista laf.

2. A plain table(without shows vertical and horizontal lines) row selection bar differs with native plain table.

In native table the row selection bar is continues(it means there is no vertical separator between the columns) but JTable row selection bar is discontinues(it means there is a vertical separator between the columns).I can able see this mismatch behavior in winxp default laf also.

3.Column exchange behavior differs in JTable while compare with native table.

In native while drag the column header for exchange,it shows a transparent layer for header and that layer is moving across the column headers.But in JTable doesn't have the same behavior.

4. In Vista the sort marker shows top of the header in the middle but in JTable the sort mark shows the right side of the header.

Please find the attached images for identifying the above differences.
issue from 6426246 [Win Vista: JTable's Column header's height is more in Windows LAF]
5. 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.

Comments
EVALUATION the fix for this bug introduced regressions: 6579129 [REGRESSION:NPE in DefaultTableCellHeaderRenderer in 6u3_b01 due to fix for 6434444] 6578189 [Regression:TitleBorder insets have changed and it causes bcoz of 6434444.] 6668281 [NullPointerException in DefaultTableCellHeaderRenderer.getColumnSortOrder()]
11-07-2007

EVALUATION I am going to fix only issues: 1. The native table shows the blue color for 'sort marker arrow' and 'sorted column header' but the JTable shows the gray color for both 'sort marker arrow' and 'sorted column header' in vista laf. 4. In Vista the sort marker shows top of the header in the middle but in JTable the sort mark shows the right side of the header. 5. 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. I do not think issues 2 and 3 need to be resolved now if at all.
18-06-2007

EVALUATION I am not sure if there is a native widget for table. In any case we might be using not the same parts.
27-06-2006