Changeset 355
- Timestamp:
- Apr 26, 2012, 1:56:31 PM (13 years ago)
- Location:
- trunk/openjdk/jdk/src/share/classes/sun/applet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/share/classes/sun/applet/AppletPanel.java
r278 r355 69 69 * The applet (if loaded). 70 70 */ 71 Applet applet;71 protected Applet applet; 72 72 73 73 /** … … 118 118 * The thread for the applet. 119 119 */ 120 Thread handler;120 protected Thread handler; 121 121 122 122 … … 163 163 * each time an applet is loaded and reloaded. 164 164 */ 165 synchronized void createAppletThread() { 165 //Overridden by NetxPanel. 166 protected synchronized void createAppletThread() { 166 167 // Create a thread group for the applet, and start a new 167 168 // thread to load the applet. … … 307 308 * Get an event from the queue. 308 309 */ 309 synchronized AppletEvent getNextEvent() throws InterruptedException {310 protected synchronized AppletEvent getNextEvent() throws InterruptedException { 310 311 while (queue == null || queue.isEmpty()) { 311 312 wait(); … … 696 697 * things like HotJava. 697 698 */ 698 private void runLoader() { 699 //Overridden by NetxPanel. 700 protected void runLoader() { 699 701 if (status != APPLET_DISPOSE) { 700 702 showAppletStatus("notdisposed"); -
trunk/openjdk/jdk/src/share/classes/sun/applet/AppletViewerPanel.java
r278 r355 43 43 * @author Arthur van Hoff 44 44 */ 45 class AppletViewerPanel extends AppletPanel {45 public class AppletViewerPanel extends AppletPanel { 46 46 47 47 /* Are we debugging? */ 48 static boolean debug = false;48 protected static boolean debug = false; 49 49 50 50 /** 51 51 * The document url. 52 52 */ 53 URL documentURL;53 protected URL documentURL; 54 54 55 55 /** 56 56 * The base url. 57 57 */ 58 URL baseURL;58 protected URL baseURL; 59 59 60 60 /** 61 61 * The attributes of the applet. 62 62 */ 63 Hashtableatts;63 protected Hashtable<String,String> atts; 64 64 65 65 /* … … 71 71 * Construct an applet viewer and start the applet. 72 72 */ 73 AppletViewerPanel(URL documentURL, Hashtableatts) {73 protected AppletViewerPanel(URL documentURL, Hashtable<String,String> atts) { 74 74 this.documentURL = documentURL; 75 75 this.atts = atts; … … 107 107 */ 108 108 public String getParameter(String name) { 109 return (String)atts.get(name.toLowerCase());109 return atts.get(name.toLowerCase()); 110 110 } 111 111 … … 203 203 } 204 204 205 static void debug(String s) {205 protected static void debug(String s) { 206 206 if(debug) 207 207 System.err.println("AppletViewerPanel:::" + s); 208 208 } 209 209 210 static void debug(String s, Throwable t) {210 protected static void debug(String s, Throwable t) { 211 211 if(debug) { 212 212 t.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.