import java.awt.*;
import java.applet.*;
public class sample extends Applet
{
String chr;
public void init()
{
setBackground(Color.black);
setForeground(Color.white);
chr="Inside init() ---->";
}
public void start()
{
chr+="Inside start() ---->";
}
public void paint(Graphics g)
{
chr+="Inside paint() ---->";
g.drawString(chr,10,0);
}
}
** This is my first applet, and as i ran this on complier..it showed an error..."main method not found...declare it as..." I dont understand the problem as i had read that applets do not require main(). **