< prev index next >
src/java.desktop/share/classes/sun/applet/AppletViewer.java
Print this page
@@ -36,11 +36,10 @@
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
@@ -852,11 +851,11 @@
// spawn a new thread to avoid blocking the event queue
// when calling appletShutdown.
//
final AppletPanel p = panel;
- new ManagedLocalsThread(new Runnable()
+ new Thread(null, new Runnable()
{
@Override
public void run()
{
appletShutdown(p);
@@ -865,11 +864,12 @@
if (countApplets() == 0) {
appletSystemExit();
}
}
- }).start();
+ },
+ "AppletCloser", 0, false).start();
}
/**
* Exit the program.
* Exit from the program (if not stand alone) - do no clean-up
@@ -888,22 +888,23 @@
{
// 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()
+ new Thread(null, new Runnable()
{
@Override
public void run()
{
for (Enumeration<AppletPanel> e = appletPanels.elements() ; e.hasMoreElements() ;) {
AppletPanel p = e.nextElement();
appletShutdown(p);
}
appletSystemExit();
}
- }).start();
+ },
+ "AppletQuit", 0, false).start();
}
/**
* Handle events.
*/
< prev index next >