-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.3.1, 1.4.2, 5.0
-
x86
-
linux, windows_2000, windows_xp
Name: iaR10016 Date: 05/19/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b23, JDK1.5.0-b06, JDK1.4.1, JDK1.4.0
Platforms : Windows XP, Windows 2000, Windows 98
The following test example creates FileDialog with directory and file set to
input java arguments.
--------- test.java ---------
import java.awt.*;
public class test {
public static void main(String[] args) {
FileDialog aDialog = new FileDialog(new Frame());
System.out.println("Directory set to " + args[0]);
System.out.println("File name set to " + args[1]);
aDialog.setDirectory(args[0]);
aDialog.setFile(args[1]);
aDialog.setVisible(true);
}
}
-----------------------------
Please, do the following steps to reproduce the failure:
1. Compile test java
2. Run the test on Windows system.
Set existing directory and existing filename as input argument for the test execution.
For example om Windows 2000 run the following command:
> java test C: config.sys
File dialog appears. FileDialog's current directory is "C:", and "File name" field contains
"config.sys" file name (this is correct behaviour). But "config.sys" is not highlighted in
the files list as expected.
Specific machine info:
======================
Hostname: linux-2
OS: Windows 2000
======================================================================