< prev index next >

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

Print this page

        

*** 42,51 **** --- 42,52 ---- TextField proxyHost; TextField proxyPort; Choice accessMode; + @SuppressWarnings("deprecation") AppletProps() { setTitle(amh.getMessage("title")); Panel p = new Panel(); p.setLayout(new GridLayout(0, 2));
*** 98,107 **** --- 99,109 ---- proxyHost.setText(""); proxyPort.setText(""); } } + @SuppressWarnings("deprecation") void apply() { String proxyHostValue = proxyHost.getText().trim(); String proxyPortValue = proxyPort.getText().trim(); // Get properties
*** 170,179 **** --- 172,182 ---- e.printStackTrace(); reset(); } } + @SuppressWarnings("deprecation") public boolean action(Event evt, Object obj) { if (amh.getMessage("button.apply").equals(obj)) { apply(); return true; }
*** 195,204 **** --- 198,208 ---- /* 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,219 **** --- 214,224 ---- 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 >