MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / handle

Method handle

src/main/java/exitcode/Main.java:249–254  ·  view source on GitHub ↗
(WindowEvent t)

Source from the content-addressed store, hash-verified

247 primaryStage.show();
248 primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>() { //Propperly kill the app
249 @Override
250 public void handle(WindowEvent t) {
251 Main.preExitTasks();
252 Platform.exit();
253 System.exit(0);
254 }
255 });
256 // This sets the fullscreen exit key to blank, and removes the "press ESC to leave fullscreen" because I need Esc for the menu.
257 primaryStage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);

Callers

nothing calls this directly

Calls 2

preExitTasksMethod · 0.95
exitMethod · 0.80

Tested by

no test coverage detected