edvin
01/16/2019, 8:48 AMsetOnCloseRequest is intended to handle external requests to closing the window, ie when you actually click the X, it will not be called when you explicitly call close(). You can use setOnCloseRequest to intercept the close request and for example show a "save unsaved work" dialog before closing.