@Override /** Closing the application */ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
/** * Releasing exit button * * @param e Event */ public void accionExit_mouseReleased(MouseEvent e) { System.exit(0); }
void exit_mouseReleased(MouseEvent e) { exit.setBounds(new Rectangle(15, 340, 129, 36)); System.exit(0); }