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

Stage.hide causes Application.stop, but does not fire Stage.setOnCloseRequest event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7-pool
    • javafx
    • None
    • 2.0 beta b45

      Stage.hide causes Application.stop, but does not fire Stage.setOnCloseRequest event

      @Override public void start() {
      ...
      stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
      public void handle(final WindowEvent event) {
      // never gets called
      }
      });
      ...
      // in some other method call stage.hide(); when a button is clicked or similar
      }
      @Override public void stop() throws Exception {
      // gets called
      }

            lnerad Ľubomír Nerád (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: