< prev index next >

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

Print this page

        

*** 46,55 **** --- 46,56 ---- final class TextFrame extends Frame { /** * Create the tag frame. */ + @SuppressWarnings("deprecation") TextFrame(int x, int y, String title, String text) { setTitle(title); TextArea txt = new TextArea(20, 60); txt.setText(text); txt.setEditable(false);
*** 154,163 **** --- 155,165 ---- } /** * Create the applet viewer. */ + @SuppressWarnings("deprecation") public AppletViewer(int x, int y, URL doc, Hashtable<String, String> atts, PrintStream statusMsgStream, AppletViewerFactory factory) { this.factory = factory; this.statusMsgStream = statusMsgStream; setTitle(amh.getMessage("tool.title", atts.get("code")));
*** 226,235 **** --- 228,238 ---- { this.frame = frame; } @Override + @SuppressWarnings("deprecation") public void appletStateChanged(AppletEvent evt) { AppletPanel src = (AppletPanel)evt.getSource(); switch (evt.getID()) {
*** 592,601 **** --- 595,605 ---- } /** * Make sure the atrributes are uptodate. */ + @SuppressWarnings("deprecation") public void updateAtts() { Dimension d = panel.size(); Insets in = panel.insets(); panel.atts.put("width", Integer.toString(d.width - (in.left + in.right)));
*** 646,655 **** --- 650,660 ---- } /** * Save the applet to a well known file (for now) as a serialized object */ + @SuppressWarnings("deprecation") void appletSave() { AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() {
*** 697,706 **** --- 702,712 ---- } /** * Clone the viewer and the applet. */ + @SuppressWarnings("deprecation") void appletClone() { Point p = location(); updateAtts(); @SuppressWarnings("unchecked") Hashtable<String, String> tmp = (Hashtable<String, String>) panel.atts.clone();
*** 709,718 **** --- 715,725 ---- } /** * Show the applet tag. */ + @SuppressWarnings("deprecation") void appletTag() { ByteArrayOutputStream out = new ByteArrayOutputStream(); updateAtts(); printTag(new PrintStream(out), panel.atts); showStatus(amh.getMessage("applettag"));
*** 722,731 **** --- 729,739 ---- } /** * Show the applet info. */ + @SuppressWarnings("deprecation") void appletInfo() { String str = panel.applet.getAppletInfo(); if (str == null) { str = amh.getMessage("appletinfo.applet"); }
< prev index next >