-
Bug
-
Resolution: Fixed
-
P2
-
1.3.1_01, 1.4.0
-
beta
-
x86, sparc
-
generic, linux, solaris_2.6
Name: aaR10142 Date: 12/25/2000
JFileChooser constructors by default set current dirrectory to the "Desktop" value on Windows,
but should use user.home property instead.
javadoc says:
"public JFileChooser()
Constructs a JFileChooser pointing to the user's home
directory.
"
See example
---------- CtorTests.java ----------------
import javax.swing.*;
public class CtorTests {
public static void main(String argv[]) {
JFileChooser c = new JFileChooser(); // Create JFileChooser object
System.out.println("Current dir is "+c.getCurrentDirectory());
System.out.println("Home dir is " + System.getProperty("user.home"));
}
}
------------- output -------------------------
Current dir is Desktop
Home dir is C:\WINNT\Profiles\fda
======================================================================
- duplicates
-
JDK-4380775 Linux: JCK1.3 api/javax_swing/JFileChooser/descriptions.html#news test fails und
-
- Closed
-
-
JDK-4396711 JCK: api/javax_swing/JFileChooser/descriptions.html#news fails on Windows
-
- Closed
-
- relates to
-
JDK-4654300 JFileChooser broken in 1.4.0-rc
-
- Closed
-
-
JDK-8283621 Write a regression test for CCC4400728
-
- Resolved
-