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
Post a Comment