JDK-4972064 : The List View of the JFIleChooser is not rendered proplery when clicked to edit.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2003-12-23
  • Updated: 2018-09-05
Related Reports
Relates :  
Description
The List View of the JFIleChooser is not rendered proplery when clicked to edit.

Steps to reproduce:
--------------------
1) Unzip the attached code.
2) Compile and run SynthTest on b32. 
3) Click on any folder. 
4) Click again to make it editable. 
5) Notice the position of the text filed. 
6) See the attached image also.

Comments
WORK AROUND The Api docs needs to be changed.
25-09-2004

EVALUATION The culprit looks to be in sun.swing.FilePane: int editX = 20; ... editCell.setBounds(editX + r.x, r.y, r.width - editX, r.height); In most cases it is necessary to shift the editCell to the right in order to avoid overlapping the file's icon. But this test has no file icon, so this behavior looks bad. ###@###.### 2004-01-08
08-01-2004