JDK-4882890 : Focus on a file is not painted correctly in JFileChooser in Details Mode
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-06-24
  • Updated: 2003-07-11
  • Resolved: 2003-07-11
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 tigerFixed
Related Reports
Relates :  
Relates :  
Description
Steps to reproduce the bug:

1.This happens in Metal L&F
2.Invoke JFileChooser from FileChooserDemo and select Details View
3.Move to any directory where there are few files/folders-so that there is space to click below the last file
4.Select the First Folder/File in the FilePane - Name / Size/Modified viz. entire row is highlighted
5.Now click on the empty space below the last File/Folder
6.This results in only File/Folder 'Name' to retain the border whereas the highlighting of 'Size' and 'Modified' columns disappear.

But in Tiger b07, the 'Size' and 'Modified' columns continue to be highlighted.

While bug 4835633 was for Metal and Windows L&F, bug 4860774 reverted the fix for Metal. This means that the expected behavior would be that the 1st row of the File pane of JFileChooser should remain highlighted.

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

SUGGESTED FIX ------- MetalFileChooserUI.java ------- *** /tmp/sccs.ovaGis Thu Jun 26 14:11:05 2003 --- MetalFileChooserUI.java Thu Jun 26 14:09:53 2003 *************** *** 895,901 **** JTable table = (JTable)jsp.getViewport().getView(); if (!e.isShiftDown() || table.getSelectionModel().getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) { - table.clearSelection(); TableCellEditor tce = table.getCellEditor(); if (tce != null) { tce.stopCellEditing(); --- 895,900 ----
11-06-2004

EVALUATION Instead of de-highlighting the current file on a mouse click in the scroll pane, the only thing that should happen is that filename editing should be stopped. ###@###.### 2003-06-26
26-06-2003