public void windowClosing(WindowEvent e) { atp.stopGame(); midisLoader.close(); // not really required }
public void windowIconified(WindowEvent e) { atp.pauseGame(); }
public void windowDeactivated(WindowEvent e) { atp.pauseGame(); }
public void windowDeiconified(WindowEvent e) { atp.resumeGame(); }
public void windowActivated(WindowEvent e) { atp.resumeGame(); }