JDK-4679045 : JFileChooser should make "New Folder" editable under Metal LAF
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-05-03
  • Updated: 2004-08-31
  • Resolved: 2004-08-31
Related Reports
Relates :  
Description

Name: jk109818			Date: 05/02/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
When the JFileChooser  "New Folder" button is selected
under the Windows LAF, the new folder created is selected
and editable, ready to type the new name. Under the Metal
LAF, it is selected but not editable. I think it is more
useable when it is editable - otherwise users of the Metal
LAF don't understand how to change the name.

Also see bug #4252279.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the attached application with and without the java
option -
Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLoo
kAndFeel
2. Select the "New Folder" button


EXPECTED VERSUS ACTUAL BEHAVIOR :
Under the Windows LAF, the new folder is immediately
editable. Under Metal it is selected but not in editing
mode.

This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;
public class Chooser {
	public static void main(String args[]) {
		new JFileChooser().showOpenDialog(null);
		System.exit(0);
	}
}

---------- END SOURCE ----------
(Review ID: 146136) 
======================================================================

Comments
EVALUATION This was fixed as part of work for rfe 4887433 in 1.5.0, and is no longer reproducible. ###@###.### 2004-08-31
31-08-2004