30-08-2011, 12:11 PM
Code:
import java.awt.*;
import java.applet.*;
class FirstApplet extends Applet
{
String message;
public void init()
{
message = "Ravi ! Welcome To U";
setBackground(Color.black);
setForeground(Color.yellow);
}
public void paint(Graphics g)
{
g.drawString(message,10,10);
}
}