United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4872980 JFileChooser doesn't open empty dir correctly
JDK-4872980 : JFileChooser doesn't open empty dir correctly

Details
Type:
Bug
Submit Date:
2003-06-03
Status:
Closed
Updated Date:
2004-04-29
Project Name:
JDK
Resolved Date:
2004-03-27
Component:
client-libs
OS:
solaris_9,generic
Sub-Component:
javax.swing
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.1,1.4.2,1.4.2_03
Fixed Versions:
1.4.2_05 (05)

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:

Sub Tasks

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
PUBLIC COMMENTS

verified the fix with tiger b48 on Solaris 10 sparc, SLES8, XP pro.
###@###.### 2004-04-27
                                     
2004-04-27
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
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



Hardware and Software, Engineered to Work Together