G
Gaurav Tiwari
i have written the following program , but while compiling i m getting
the error as :
Note: Applet3.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
i dont know what to do as i m in inital stages of programming plz help
..
// Applet3.java
import java.awt.*;
import java.applet.*;
public class Applet3 extends Applet
{
TextField t ;
public void init()
{
t = new TextField(20);
add(t);
}
public void paint(Graphics g)
{
String s ;
s = t.getText() ;
g.drawString(s,41,50);
}
public boolean action(Event event,Object arg)
{
repaint();
return true ;
}
}
the error as :
Note: Applet3.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
i dont know what to do as i m in inital stages of programming plz help
..
// Applet3.java
import java.awt.*;
import java.applet.*;
public class Applet3 extends Applet
{
TextField t ;
public void init()
{
t = new TextField(20);
add(t);
}
public void paint(Graphics g)
{
String s ;
s = t.getText() ;
g.drawString(s,41,50);
}
public boolean action(Event event,Object arg)
{
repaint();
return true ;
}
}