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

1.1.7: FileDialog does not show up

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • 1.1.7, 1.2.0
    • 1.1.8
    • client-libs
    • 1.1.8
    • generic, sparc
    • solaris_2.5.1, windows_nt
    • Verified

    Backports

      Description



        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
        ----------------------------------


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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: