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

Stage.close() behavior is inconsistent on Mac and Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • None
    • 2.1 b03

      Run next code snippet on Mac and Windows. Mac wouldn't print "after", but Windows would.

      public class StageClose extends Application
      {
          public static void main(String[] args) {
              launch(args);
              System.err.println("after");
          }

          @Override
          public void start(Stage stage) throws Exception {
              stage.show();
              stage.close();
          }
      }

            kcr Kevin Rushforth
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: