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

1.1.7: FileDialog does not show up

XMLWordPrintable

    • 1.1.8
    • generic, sparc
    • solaris_2.5.1, windows_nt
    • Verified



        Name: inC81039 Date: 10/14/98



        Under win32 FileDialog window does not show up if file name is set to not correct one.
        However corresponding FileDialog is sucesfully created.

        Use following test for reproduce:

        --------------------------------
        import java.awt.*;

        public class Test {

            public static void main(String s[]) {
        Frame f = new Frame("Test");
        f.setSize(new Dimension(400,400));
        f.show();

        // now try to show file dialog
        FileDialog fd = new FileDialog(f, "Save File...", FileDialog.SAVE);
        String name="http://www.sun.com/";
        fd.setFile(name);
                fd.show();
                if (fd.getFile() != null) {
        System.out.println("Saving: " + fd.getDirectory() + fd.getFile());
                }
        System.out.println("fd="+fd);

            }
        } // end Test
        ----------------------------------


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

              prssunw Prs Prs (Inactive)
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: