-
Bug
-
Resolution: Fixed
-
P4
-
1.3.1
-
beta
-
x86
-
windows_nt
-
Verified
Name: asR10013 Date: 02/01/2001
Bug description ---> When initial path with non-existing drive specified,
JFileChooser shows that non-existing drive in the list of available drives.
****************************************************************************
Failing Test:
=============
JCK :
=====
Test source location:
====================
Platforms:
=============
Windows NT 4.0
Windows ME
Windows 95
JDK, switches Info:
===================
java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)
jtr file location:
==================
How to reproduce:
====================
Compile and run the following program.
You will see "X" (non-existing) drive letter in the list of avaliable disk drives.
Note: You may need to substitute "x:\\" with your own non-existing drive letter
Source
======
//---------------------------- test.java --------------------------------------------
import javax.swing.JFileChooser;
public class test {
public static void main( String[] args ) {
// Note: You may need to substitute "x:\\" with your own non-existing drive letter
JFileChooser chooser = new JFileChooser("x:\\");
chooser.showOpenDialog(null);
System.exit(0);
};
}
//---------------------------- end test.java --------------------------------------------
Test output:
=============
Specific Machine Info:
=====================
hostname: linux-11
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
======================================================================