java - WindowEvent without specification? -


betrachterfxmlcontroller controller = loader<betrachterfxmlcontroller>getcontroller(); eventhandler<windowevent> h;         h = (windowevent event) -> {             event.consume();             controller.end();         }; 

i see type of eventhandler first time. supposed is, should tell controller close program (end() calls platform.exit) when x @ top clicked. due fact gui has multiple windows , windows should closed when main window closed.

what don't why eventhandler waits random(?) windowevent. doesn't has specified windowevent handles?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -