JDK-6520574 : JFileChooser - create new folder - not editable
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0,6u20,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp,windows_2008
  • CPU: generic,x86
  • Submitted: 2007-02-02
  • Updated: 2011-01-19
  • Resolved: 2009-11-25
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.
JDK 6 JDK 7
6u22-revFixed 7 b77Fixed
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
1.4.2._04
1.5.0_04
1.6.0-rc


ADDITIONAL OS VERSION INFORMATION :
Windows XP Professional 2002 Service pack 1

A DESCRIPTION OF THE PROBLEM :
the first newly created subfolder directly beneath an empty folder are never editable.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
browse to an empty directory with the JFileChooser.

Click 'create new folder'.

This creates 'New Folder' which is never editable.

Subsequent new folders are editable.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the first newly created folder beneath an empty folder should be editable.
ACTUAL -
the newly created folder was not editable, yet subsequent newly created folders were editable.

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION The BasicDirectoryModel class determines the case of interval adding incorrectly. As a result the first NewFolder doesn't start editing automatically.
13-11-2009