United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6520574 JFileChooser - create new folder - not editable
JDK-6520574 : JFileChooser - create new folder - not editable

Details
Type:
Bug
Submit Date:
2007-02-02
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2009-11-25
Component:
client-libs
OS:
generic,windows_2008,windows_xp
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0,6u20,7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Duplicate:
Relates:

Sub Tasks

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.
                                     
2009-11-13



Hardware and Software, Engineered to Work Together