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

Modal dialogs resumes the calling thread before it's hidden

    XMLWordPrintable

Details

    • b114
    • generic, x86
    • generic, linux_redhat_5.0, solaris, windows, windows_xp, windows_7
    • Verified

    Description

      Execute the following simple test:

      import java.awt.*;

      public class slash {
        public static void main(String[] args) {
          FileDialog fd = new FileDialog((Frame)null, "save", FileDialog.SAVE);
          fd.setVisible(true);
          System.err.println("dir: " + fd.getDirectory());
        }
      }

      Note that the dialog is modal, so System.err.println() should be executed after the dialog is hidden/disposed. However, even if the dialog is still visible, the current directory is printed to console in ~5 secs after the dialog is shown.

      Attachments

        Issue Links

          Activity

            People

              art Artem Ananiev (Inactive)
              art Artem Ananiev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: