< prev index next >
src/java.desktop/share/classes/sun/applet/AppletViewer.java
Print this page
@@ -46,10 +46,11 @@
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,10 +155,11 @@
}
/**
* 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,10 +228,11 @@
{
this.frame = frame;
}
@Override
+ @SuppressWarnings("deprecation")
public void appletStateChanged(AppletEvent evt)
{
AppletPanel src = (AppletPanel)evt.getSource();
switch (evt.getID()) {
@@ -592,10 +595,11 @@
}
/**
* 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,10 +650,11 @@
}
/**
* 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,10 +702,11 @@
}
/**
* 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,10 +715,11 @@
}
/**
* Show the applet tag.
*/
+ @SuppressWarnings("deprecation")
void appletTag() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
updateAtts();
printTag(new PrintStream(out), panel.atts);
showStatus(amh.getMessage("applettag"));
@@ -722,10 +729,11 @@
}
/**
* Show the applet info.
*/
+ @SuppressWarnings("deprecation")
void appletInfo() {
String str = panel.applet.getAppletInfo();
if (str == null) {
str = amh.getMessage("appletinfo.applet");
}
< prev index next >