si questo si, se preme il bottone di uscita fai

codice:
System.exit(0);