I have a problem with the import statement in an
applet,
CAn you please check the code and tell me where am going wrong
import java.applet.Applet.*;
import java.awt.*;
public class testapplet extends java.applet.Applet{
String s;
public void init()
{
setBackground(Color.white);
s="Welcome to Java";
}
public void paint(java.awt.Graphics gc){
gc.draw3DRect(100,100,100,100,true);
}
}
The above code would not compile if I dont use Applet or Graphics class with complete path(java.applet.Applet.* etc).Can you please help which is the setting I am missing