JDK-4915506 : Single selection for folders in JFileChooser is not working properly in Motif Lo
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1_03
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-09-01
  • Updated: 2006-04-25
  • Resolved: 2006-04-25
Related Reports
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 "Single Selection"
4)Now launch JFileChooser by pressing "Show FileChooser" button.
5)Select a single folder(directories). Obviously one will expect 
  folder selection to be displayed in the text field("Enter file name").  
  But in reality folder doesn't 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 This is the same problem as 5069423 - that "Files or Directories" mode is buggy.
25-04-2006

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