public void jButtonExit_actionPerformed(ActionEvent e) { if (jButtonStop.isEnabled()) { jButtonStop_actionPerformed(e); } System.exit(0); }