< prev index next >

src/java.desktop/share/classes/sun/applet/AppletViewer.java

Print this page

        

*** 36,46 **** import java.net.SocketPermission; import java.security.AccessController; import java.security.PrivilegedAction; import sun.awt.SunToolkit; import sun.awt.AppContext; - import sun.misc.ManagedLocalsThread; /** * A frame to show the applet tag in. */ @SuppressWarnings("serial") // JDK-implementation class --- 36,45 ----
*** 852,862 **** // spawn a new thread to avoid blocking the event queue // when calling appletShutdown. // final AppletPanel p = panel; ! new ManagedLocalsThread(new Runnable() { @Override public void run() { appletShutdown(p); --- 851,861 ---- // spawn a new thread to avoid blocking the event queue // when calling appletShutdown. // final AppletPanel p = panel; ! new Thread(null, new Runnable() { @Override public void run() { appletShutdown(p);
*** 865,875 **** if (countApplets() == 0) { appletSystemExit(); } } ! }).start(); } /** * Exit the program. * Exit from the program (if not stand alone) - do no clean-up --- 864,875 ---- if (countApplets() == 0) { appletSystemExit(); } } ! }, ! "AppletCloser", 0, false).start(); } /** * Exit the program. * Exit from the program (if not stand alone) - do no clean-up
*** 888,909 **** { // The caller thread is event dispatch thread, so // spawn a new thread to avoid blocking the event queue // when calling appletShutdown. // ! new ManagedLocalsThread(new Runnable() { @Override public void run() { for (Enumeration<AppletPanel> e = appletPanels.elements() ; e.hasMoreElements() ;) { AppletPanel p = e.nextElement(); appletShutdown(p); } appletSystemExit(); } ! }).start(); } /** * Handle events. */ --- 888,910 ---- { // The caller thread is event dispatch thread, so // spawn a new thread to avoid blocking the event queue // when calling appletShutdown. // ! new Thread(null, new Runnable() { @Override public void run() { for (Enumeration<AppletPanel> e = appletPanels.elements() ; e.hasMoreElements() ;) { AppletPanel p = e.nextElement(); appletShutdown(p); } appletSystemExit(); } ! }, ! "AppletQuit", 0, false).start(); } /** * Handle events. */
< prev index next >