Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4416098

interactive: FileDialog does not keep extention for a specified file under Windo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_95, windows_2000

      Description



      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


      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            duke J. Duke (Inactive)
            Reporter:
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: