Advertisement
Guest User

Untitled

a guest
May 5th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. /**
  2. * Methode für das Beenden der Anwendung mit Bestätigungsdialog
  3. */
  4. private void closePromt() {
  5.  
  6. int close;
  7. close = JOptionPane.showInternalConfirmDialog(desktopPane, "Programm Beenden?", "Anwendung beenden.", JOptionPane.YES_NO_OPTION);
  8. if (close == 0) {
  9. System.exit(0);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement