public void initApplet(final JApplet applet) { try { final Method method = applet.getClass().getMethod("get", String.class); initWorkEnv(applet, method); SwingUtilities.invokeLater( new Runnable() { public void run() { try { installLaf(applet, method); initPanel(applet, method); createLogDir(); } catch (Exception ex) { ex.printStackTrace(); } } }); } catch (Exception ex) { ex.printStackTrace(); } }
/** * Call this method to destroy the applet from your launcher class <code> * MyAppletLauncher.destroy()</code> method. */ public void destroyApplet() { checkApplet(); logInfo(LogArea.CONFIG, "destroyApplet() --> %s.destroy()", applet.getClass().getName()); applet.destroy(); }
/** * Call this method to stop the applet from your launcher class <code>MyAppletLauncher.stop() * </code> method. */ public void stopApplet() { checkApplet(); logInfo(LogArea.CONFIG, "stopApplet() --> %s.stop()", applet.getClass().getName()); applet.stop(); }