< prev index next >

src/java.desktop/share/classes/sun/applet/AppletPanel.java

Print this page

        

*** 769,779 **** protected Applet createApplet(final AppletClassLoader loader) throws ClassNotFoundException, IllegalAccessException, IOException, InstantiationException, InterruptedException { String code = getCode(); if (code != null) { ! applet = (Applet)loader.loadCode(code).newInstance(); } else { String msg = "nocode"; status = APPLET_ERROR; showAppletStatus(msg); showAppletLog(msg); --- 769,781 ---- protected Applet createApplet(final AppletClassLoader loader) throws ClassNotFoundException, IllegalAccessException, IOException, InstantiationException, InterruptedException { String code = getCode(); if (code != null) { ! @SuppressWarnings("deprecation") ! Object tmp = loader.loadCode(code).newInstance(); ! applet = (Applet)tmp; } else { String msg = "nocode"; status = APPLET_ERROR; showAppletStatus(msg); showAppletLog(msg);
< prev index next >