JDK-4915498 : Multiple selection in JFileChooser is not working properly in Motif Look and Fee
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1,1.4.1_03
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_8
  • CPU: generic,sparc
  • Submitted: 2003-09-01
  • Updated: 2006-04-25
  • Resolved: 2006-04-25
Related Reports
Duplicate :  
Duplicate :  
Description
Name: dk106046			Date: 09/01/2003

FULL JDK VERSION(S):
-------------------
java version "1.4.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)


------------
Steps to reproduce:

1)Launch FilechooserDemo provided by SUN from demo package.
       java -jar FileChooserDemo.jar
2)Select Motif Look and Feel
3)Select the radio buttons "Select Files and Directories" and "Multiple Selection"
4)Now launch JFileChooser by pressing "Show FileChooser" button.
5)Select multiple files and folders(directories). Obviously one will expect 
  both the directory and file selections to be displayed in the text field("Enter file name").  
  But in reality only either files or directories get selected. This is the problem.

Testcase:

This FilechooserDemo.java comes along with the demo package supplied by SUN.

[This bug is being submitted as a courtesy, in order to maintain uniformity between Sun & IBM JDKs.  It has been fixed in IBM JDKs.  
Please contact ###@###.### if you have questions.]
======================================================================

Comments
EVALUATION Problem with single selection too. Looks like "Files or Directories" mode is buggy. See also 4915506. Duplicate of 5069423.
25-04-2006

EVALUATION A similar problem exists with GTK L&F.
25-04-2006

EVALUATION Will investigate for an upcoming release. ###@###.### 2004-08-23
23-08-2004