-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
1.4.0
-
x86
-
windows_95, windows_2000
Name: asR10013 Date: 02/15/2001
Bug description ---> FileDialog does not keep extention for a default file specified
via setFile method under Windows 95 and Windows 2000 Professional.
FileDialog behaves correctly under Windows ME, Windows NT4.0.
****************************************************************************
Platforms:
=============
Windows 95
Windows 2000 Professional
JDK, switches Info:
===================
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b51)
Java HotSpot(TM) Client VM (build B51, mixed mode)
How to reproduce:
====================
Compile the following progam and run it under Windows 95.
You will see only "test" instead of "test.txt" in the "File name:" field.
Source
======
import java.awt.*;
public class test extends Frame {
static void main( String[] args ) {
test tst = new test();
tst.show();
tst.showDlg();
}
void showDlg() {
FileDialog dlg = new FileDialog( this );
dlg.setDirectory( "c:\\" );
dlg.setFile("test.txt" );
dlg.show();
}
}
Test output:
=============
Specific Machine Info:
=====================
hostname: linux-19
Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
======================================================================