/** * Requests the context to close, shutting down the main loop * and making necessary cleanup operations. * * Same as calling stop(false) * * @see #stop(boolean) */ public void stop(){ stop(false); }
/** * Internal use only. */ public void handleError(String errMsg, Throwable t){ logger.log(Level.SEVERE, errMsg, t); // user should add additional code to handle the error. stop(); // stop the application }
@Override public void destroy(){ System.out.println("applet:destroyStart"); SwingUtilities.invokeLater(new Runnable(){ public void run(){ removeAll(); System.out.println("applet:destroyRemoved"); } }); app.stop(true); System.out.println("applet:destroyDone"); appToApplet.remove(app); }