JDK-6368302 : Folder icon or file icon disappears when try to rename a file in JFileChooser in Java Look & Feel.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-01-03
  • Updated: 2011-02-16
  • Resolved: 2006-03-21
Related Reports
Duplicate :  
Relates :  
Description
Folder icon or file icon disappears when try to rename a file in JFileChooser in Java Look & Feel in details mode( after clicking "Details" button ).		

Step to reproduce:-
	1) Run SwingSet2.
	2) JFileChooser demo.
	3) Select "Java Look & Feel"
	4) Select any button ( Show plain JFileChooser , Show Preview JFIleChooser , Show 
     	     Custom JFileChooser).
	5) Click "Details" button.
	6) Select any file or folder.
	7) Press F2.
	8) Observe that Icon are disappering.
	9) Rename the file & press enter , the Icon is seen.
		
Excepted Result:-
    The user should able to rename the file or folder & icon should not disappear.

I tested this with mustang b59c onwards till b65. I even tested this with tiger rc 63.
Tested on  solaris  10 & windows xp.

Comments
EVALUATION I thought it out and decided to fix it another way. I think it would be better to edit file name in details view with the same text field that is currently used for editing in list view mode. It would allow to mimic the Windows behaviour of resizing the edit field when typing, including expanding it over table grid for long file names.
17-03-2006

EVALUATION The inner class DetailsTableCellEditor of FilePane should be modified for this.
13-01-2006