35 import java.net.JarURLConnection;
36 import java.net.SocketPermission;
37 import java.net.URL;
38 import java.security.*;
39 import java.util.*;
40 import java.util.Locale;
41 import java.util.concurrent.LinkedBlockingQueue;
42 import sun.awt.AWTAccessor;
43 import sun.awt.AppContext;
44 import sun.awt.EmbeddedFrame;
45 import sun.awt.SunToolkit;
46 import sun.awt.util.PerformanceLogger;
47 import sun.security.util.SecurityConstants;
48
49 /**
50 * Applet panel class. The panel manages and manipulates the
51 * applet as it is being loaded. It forks a separate thread in a new
52 * thread group to call the applet's init(), start(), stop(), and
53 * destroy() methods.
54 *
55 * @author Arthur van Hoff
56 */
57 @SuppressWarnings({"serial", "deprecation"}) // JDK implementation class
58 public
59 abstract class AppletPanel extends Panel implements AppletStub, Runnable {
60
61 /**
62 * The applet (if loaded).
63 */
64 Applet applet;
65
66
67 /**
68 * The classloader for the applet.
69 */
70 protected AppletClassLoader loader;
71
72 /* applet event ids */
73 public static final int APPLET_DISPOSE = 0;
74 public static final int APPLET_LOAD = 1;
75 public static final int APPLET_INIT = 2;
76 public static final int APPLET_START = 3;
77 public static final int APPLET_STOP = 4;
|
35 import java.net.JarURLConnection;
36 import java.net.SocketPermission;
37 import java.net.URL;
38 import java.security.*;
39 import java.util.*;
40 import java.util.Locale;
41 import java.util.concurrent.LinkedBlockingQueue;
42 import sun.awt.AWTAccessor;
43 import sun.awt.AppContext;
44 import sun.awt.EmbeddedFrame;
45 import sun.awt.SunToolkit;
46 import sun.awt.util.PerformanceLogger;
47 import sun.security.util.SecurityConstants;
48
49 /**
50 * Applet panel class. The panel manages and manipulates the
51 * applet as it is being loaded. It forks a separate thread in a new
52 * thread group to call the applet's init(), start(), stop(), and
53 * destroy() methods.
54 *
55 * @deprecated The Applet API is deprecated. See the
56 * <a href="../../java/applet/package-summary.html"> java.applet package
57 * documentation</a> for further information.
58 *
59 * @author Arthur van Hoff
60 */
61 @SuppressWarnings({"serial"}) // JDK implementation class
62 @Deprecated(since = "9")
63 public
64 abstract class AppletPanel extends Panel implements AppletStub, Runnable {
65
66 /**
67 * The applet (if loaded).
68 */
69 Applet applet;
70
71
72 /**
73 * The classloader for the applet.
74 */
75 protected AppletClassLoader loader;
76
77 /* applet event ids */
78 public static final int APPLET_DISPOSE = 0;
79 public static final int APPLET_LOAD = 1;
80 public static final int APPLET_INIT = 2;
81 public static final int APPLET_START = 3;
82 public static final int APPLET_STOP = 4;
|