summaryrefslogtreecommitdiff
path: root/lang/openjdk7/patches/patch-at
blob: f57a039560ee060aa36d3997410a4fc3e3d5618e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-at,v 1.2 2013/06/02 06:12:28 ryoon Exp $

--- jdk/src/share/classes/sun/applet/AppletPanel.java.orig	2013-05-29 03:57:58.000000000 +0000
+++ jdk/src/share/classes/sun/applet/AppletPanel.java
@@ -68,7 +68,7 @@ abstract class AppletPanel extends Panel
     /**
      * The applet (if loaded).
      */
-    Applet applet;
+    protected Applet applet;
 
     /**
      * Applet will allow initialization.  Should be
@@ -162,7 +162,8 @@ abstract class AppletPanel extends Panel
      * Creates a thread to run the applet. This method is called
      * each time an applet is loaded and reloaded.
      */
-    synchronized void createAppletThread() {
+	//Overridden by NetxPanel.
+    protected synchronized void createAppletThread() {
         // Create a thread group for the applet, and start a new
         // thread to load the applet.
         String nm = "applet-" + getCode();
@@ -306,7 +307,7 @@ abstract class AppletPanel extends Panel
     /**
      * Get an event from the queue.
      */
-    synchronized AppletEvent getNextEvent() throws InterruptedException {
+    protected synchronized AppletEvent getNextEvent() throws InterruptedException {
         while (queue == null || queue.isEmpty()) {
             wait();
         }
@@ -692,7 +693,8 @@ abstract class AppletPanel extends Panel
      * applet event processing so that it can be gracefully interrupted from
      * things like HotJava.
      */
-    private void runLoader() {
+	//Overridden by NetxPanel.
+    protected void runLoader() {
         if (status != APPLET_DISPOSE) {
             showAppletStatus("notdisposed");
             return;