Changeset 355


Ignore:
Timestamp:
Apr 26, 2012, 1:56:31 PM (13 years ago)
Author:
dmik
Message:

jdk: Apply applet_hole patch need for IcedTea-Web.

See #15 for details.

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  
    6969     * The applet (if loaded).
    7070     */
    71     Applet applet;
     71    protected Applet applet;
    7272
    7373    /**
     
    118118     * The thread for the applet.
    119119     */
    120     Thread handler;
     120    protected Thread handler;
    121121
    122122
     
    163163     * each time an applet is loaded and reloaded.
    164164     */
    165     synchronized void createAppletThread() {
     165        //Overridden by NetxPanel.
     166    protected synchronized void createAppletThread() {
    166167        // Create a thread group for the applet, and start a new
    167168        // thread to load the applet.
     
    307308     * Get an event from the queue.
    308309     */
    309     synchronized AppletEvent getNextEvent() throws InterruptedException {
     310    protected synchronized AppletEvent getNextEvent() throws InterruptedException {
    310311        while (queue == null || queue.isEmpty()) {
    311312            wait();
     
    696697     * things like HotJava.
    697698     */
    698     private void runLoader() {
     699        //Overridden by NetxPanel.
     700    protected void runLoader() {
    699701        if (status != APPLET_DISPOSE) {
    700702            showAppletStatus("notdisposed");
  • trunk/openjdk/jdk/src/share/classes/sun/applet/AppletViewerPanel.java

    r278 r355  
    4343 * @author      Arthur van Hoff
    4444 */
    45 class AppletViewerPanel extends AppletPanel {
     45public class AppletViewerPanel extends AppletPanel {
    4646
    4747    /* Are we debugging? */
    48     static boolean debug = false;
     48    protected static boolean debug = false;
    4949
    5050    /**
    5151     * The document url.
    5252     */
    53     URL documentURL;
     53    protected URL documentURL;
    5454
    5555    /**
    5656     * The base url.
    5757     */
    58     URL baseURL;
     58    protected URL baseURL;
    5959
    6060    /**
    6161     * The attributes of the applet.
    6262     */
    63     Hashtable atts;
     63    protected Hashtable<String,String> atts;
    6464
    6565    /*
     
    7171     * Construct an applet viewer and start the applet.
    7272     */
    73     AppletViewerPanel(URL documentURL, Hashtable atts) {
     73    protected AppletViewerPanel(URL documentURL, Hashtable<String,String> atts) {
    7474        this.documentURL = documentURL;
    7575        this.atts = atts;
     
    107107     */
    108108    public String getParameter(String name) {
    109         return (String)atts.get(name.toLowerCase());
     109        return atts.get(name.toLowerCase());
    110110    }
    111111
     
    203203    }
    204204
    205     static void debug(String s) {
     205    protected static void debug(String s) {
    206206        if(debug)
    207207            System.err.println("AppletViewerPanel:::" + s);
    208208    }
    209209
    210     static void debug(String s, Throwable t) {
     210    protected static void debug(String s, Throwable t) {
    211211        if(debug) {
    212212            t.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.