Created
January 13, 2015 16:23
-
-
Save tarkanlar/4db7344053d382b02096 to your computer and use it in GitHub Desktop.
Sending a warning message to the user before the application exits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window.addWindowClosingHandler(new ClosingHandler() { | |
@Override | |
public void onWindowClosing(ClosingEvent event) { | |
event.setMessage("Are you sure you want to leave the application?"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment