Hi,
This is Salil. I am trying to compile this
applet below:
import java.awt.*;
import java.applet.*;
public class Applet3 extends Applet {
TextField textField;
public void init(){
textField= new TextField(20);
add(textField);
}
public void paint(Graphics g) {
String s = textField.getText();
g.drawString(s, 40, 50);
}
public boolean action (Event event, Object arg) {
repaint ();
return true;
}
}
But when I compile it, it gives me the following error:
Applet2.java uses or overrides a depricated API. Recompile with "-deprication" for details.
Could u please tell me where exactly is the bug.
I can view the applet in Appletviewer
Thanks,
Salil