1 --- jdk/src/share/classes/sun/applet/AppletViewerPanel.java 2 +++ jdk/src/share/classes/sun/applet/AppletViewerPanel.java 3 @@ -42,25 +42,25 @@ 4 * 5 * @author Arthur van Hoff 6 */ 7 -class AppletViewerPanel extends AppletPanel { 8 +public class AppletViewerPanel extends AppletPanel { 9 10 /* Are we debugging? */ 11 - static boolean debug = false; 12 + protected static boolean debug = false; 13 14 /** 15 * The document url. 16 */ 17 - URL documentURL; 18 + protected URL documentURL; 19 20 /** 21 * The base url. 22 */ 23 - URL baseURL; 24 + protected URL baseURL; 25 26 /** 27 * The attributes of the applet. 28 */ 29 - Hashtable atts; 30 + protected Hashtable<String,String> atts; 31 32 /* 33 * JDK 1.1 serialVersionUID 34 @@ -70,7 +70,7 @@ 35 /** 36 * Construct an applet viewer and start the applet. 37 */ 38 - AppletViewerPanel(URL documentURL, Hashtable atts) { 39 + protected AppletViewerPanel(URL documentURL, Hashtable<String,String> atts) { 40 this.documentURL = documentURL; 41 this.atts = atts; 42 43 @@ -106,7 +106,7 @@ 44 * Get an applet parameter. 45 */ 46 public String getParameter(String name) { 47 - return (String)atts.get(name.toLowerCase()); 48 + return atts.get(name.toLowerCase()); 49 } 50 51 /** 52 @@ -202,12 +202,12 @@ 53 return (AppletContext)getParent(); 54 } 55 56 - static void debug(String s) { 57 + protected static void debug(String s) { 58 if(debug) 59 System.err.println("AppletViewerPanel:::" + s); 60 } 61 62 - static void debug(String s, Throwable t) { 63 + protected static void debug(String s, Throwable t) { 64 if(debug) { 65 t.printStackTrace(); 66 debug(s); 67