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

Support for conditional closing of windows in FX

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • fx2.0
    • javafx
    • None

      FX should be able to handle Glass's WindowEvent.CLOSE, and check with the user code to verify if the app wants to close the window.
      Currently the Glass's implementation of WindowStage calls close() unconditionally.

      The WindowEvent.CLOSE is generated when user clicks the "Close" button in the title-bar of a window, or when the user preses Alt+F4 key (on MS Windows). Choosing the "Close" menuitem in the window's system menu (Alt+Space) also triggers the event.

            jandrese Joe Andresen (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: