Friday, 29 March 2013

APPLET PROGRAM

Applet program
Similar programs

import java.awt.*;
import java.applet.*;

public class AppletDemo extends Applet
{

String s="";

public void init()
{
setBackground(Color.cyan);
setForeground(Color.blue);

s = "--inside init--";
}

public void start()
{
s = s+"--inside start--";
}

public void paint(Graphics g)
{
s = s+"--inside paint--";

g.drawString(s,10,20);
}
}


0 comments:

Post a Comment

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel