Save when app close, exit() ... stop()

Interesting. Try this then:

public void dispose() {
	println("Print this when sketch is closed.");
    super.dispose();
}
1 Like