JDK-4872980 : JFileChooser doesn't open empty dir correctly
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0,1.4.1,1.4.2,1.4.2_03
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_9
  • CPU: generic,sparc
  • Submitted: 2003-06-03
  • Updated: 2004-04-29
  • Resolved: 2004-03-27
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.
Other
1.4.2_05 05Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
JDK            : JDK1.4.2 b06-b25
Platform[s]    : all
Look & Feel Mode: Motif and GTK 

How to reproduce:
==================
1. Run bin/java -jar demo/jfc/SwingSet2/*jar to launch SwingSet
2. Create an empty directory.  For example, "mkdir temp2"
3. Select FileChooserDemo.
4. Select Motif or GTK Look&Feel. 
5. Clicking on "Show Plain JFileChooser" will pop up FileChooser".  Double click on the empty directory (temp2).  You will see only "Enter path or folder name" got added with "temp2" but Folders and Files have nothing changed.  Still show original directories/files.  This means it doesn't go to the empty directory.
6. Double click on temp2 again.  You'll see "temp2" got removed from "Enter path or folder name". ?


###@###.### 2003-06-02

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_05 tiger-beta2 FIXED IN: 1.4.2_05 tiger-beta2 INTEGRATED IN: 1.4.2_05 tiger-b45 tiger-beta2 VERIFIED IN: 1.4.2_05 tiger-beta2
2004-06-14

EVALUATION Looks like we're missing a repaint. If you enlarge the file dialog slightly, it causes a full repaint and the File and Directory lists are repainted properly. This happens in 1.4 as well. ###@###.### 2003-06-16 Name: omR10226 Date: 12/24/2003 Fix verified on Winxp Home for build 1.4.2_05-ea-b01 For GTK L&F: the bug isn't reproducible since 1.5.0b28, it's a result of fix 4912570. For Motif L&F: the following methods must be implemented: - MotifDirectoryListModel.intervalAdded - MotifDirectoryListModel.intervalRemoved - MotifFileListModel.intervalAdded - MotifFileListModel.intervalRemoved - rescanCurrentDirectory ====================================================================== ###@###.### 2004-04-29
2004-04-29

PUBLIC COMMENTS verified the fix with tiger b48 on Solaris 10 sparc, SLES8, XP pro. ###@###.### 2004-04-27
2004-04-27