JDK-5061361 : Discontiguous selection broken in JFileChooser details table
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,1.4.2,5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2004-06-10
  • Updated: 2004-06-22
  • Resolved: 2004-06-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.
Other
5.0 b57Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
Using JFileChooser in details view under Metal or Windows L&F, the border representing the lead index is not showing. It is therefore not possible to navigate for discontiguous selection.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b57 tiger-rc
23-07-2004

EVALUATION The root of the problem is the manner in which the new FilePane class tries to restrict selection rendering to just the file name column for the Windows L&F. Currently the logic is overcomplicated and incorrect. To fix this, I'll do the following: a) Reduce the logic in the custom renderer. It will use the superclass' behavior, but simply clear the selected flag if the table doesn't have focus or if it isn't dealing with the file name column. b) In BasicTableUI, for tables that are "fileLists", disable all traversal actions that would move the lead left or right. And in FilePane, clear the actions for TAB, SHIFT-TAB, and ENTER so that they do what is right for FileChooser and not what is right for JTable. c) With a few lines, ensure that the list view and table view only show the selection if they are focused. ###@###.### 2004-06-10
10-06-2004