Scratch for Java

Window::whenExits()

This method is called when the window exits. Override this method to define custom behavior when the window is closed.

Syntax

Java

.whenExits()

Return

void

whenExits()