hello friends ,
i am a first timer in this forum...planning to give exam by next month end..
needs some help
import java.applet.Applet;
import java.awt.*;
public class Sample extends Applet
{
private String text="Hello World";
public Sample(String string)
{
text=string;
}
public void init()
{
add(new Label(text));
}
}
why is this code giving runtime error
and "applet not initialised and Sample can't be instantiated".
why doesn't the applet take the default constructor..
regards
royce