< prev index next >
src/java.desktop/share/classes/sun/applet/AppletProps.java
Print this page
@@ -42,10 +42,11 @@
TextField proxyHost;
TextField proxyPort;
Choice accessMode;
+ @SuppressWarnings("deprecation")
AppletProps() {
setTitle(amh.getMessage("title"));
Panel p = new Panel();
p.setLayout(new GridLayout(0, 2));
@@ -98,10 +99,11 @@
proxyHost.setText("");
proxyPort.setText("");
}
}
+ @SuppressWarnings("deprecation")
void apply() {
String proxyHostValue = proxyHost.getText().trim();
String proxyPortValue = proxyPort.getText().trim();
// Get properties
@@ -170,10 +172,11 @@
e.printStackTrace();
reset();
}
}
+ @SuppressWarnings("deprecation")
public boolean action(Event evt, Object obj) {
if (amh.getMessage("button.apply").equals(obj)) {
apply();
return true;
}
@@ -195,10 +198,11 @@
/* 4066432 */
/* Dialog class to display property-related errors to user */
@SuppressWarnings("serial") // JDK implementation class
class AppletPropsErrorDialog extends Dialog {
+ @SuppressWarnings("deprecation")
public AppletPropsErrorDialog(Frame parent, String title, String message,
String buttonText) {
super(parent, title, true);
Panel p = new Panel();
add("Center", new Label(message));
@@ -210,10 +214,11 @@
Rectangle fRect = parent.bounds();
move(fRect.x + ((fRect.width - dDim.width) / 2),
fRect.y + ((fRect.height - dDim.height) / 2));
}
+ @SuppressWarnings("deprecation")
public boolean action(Event event, Object object) {
hide();
dispose();
return true;
}
< prev index next >