/*Java Program To Display Simple Text on the applet, making use of Color class. Done using Applets. */
import java.awt.*;
import java.applet.*;
public class AppletColor extends Applet
{
public void paint(Graphics c)
{
setBackground(Color.blue);
c.setColor(Color.white);
c.drawString("Lionel Is a Cool Boy",100,50);
}
}
//< code =" AppletColor" width =" 350" height =" 150">< / applet >
Subscribe to:
Post Comments (Atom)
Post a Comment