United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6434444 Vista: JTable differs with native table in vista laf.
JDK-6434444 : Vista: JTable differs with native table in vista laf.

Details
Type:
Bug
Submit Date:
2006-06-06
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
client-libs
OS:
windows_vista,windows_xp
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

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

I am not sure if there is a native widget for table. In any case we might be using not the same parts.
                                     
2006-06-27
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.
                                     
2007-06-18
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()]
                                     
2007-07-11



Hardware and Software, Engineered to Work Together