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

FileDialog does not hightlight file in the files list

XMLWordPrintable

    • 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

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

            Unassigned Unassigned
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: