Home » » Color Changes in Applet Java Program

Color Changes in Applet Java Program

Color Changes in Applet Java Program

Color Changes in Applet Java Program
Color Changes in Applet Java Program

import java.awt.*;
import java.applet.*;
public class MyAppletEg extends Applet
{
String msg="Welcome to applet";
byte b[]={65,66,67,68,69};
char ch={'A','P','P','L',E','T'};
public void paint(Graphic g)
{
Font f=newFont("arial",Font.BOLD+Font.ITALIC,20);
color c=new color(225,0,0);
g.setFont(f);
g.setColor(c);
g.drawString(msg,100,100);
g.setColor(color.blue);
g.drawChars(ch,0,6,100,3000);
}
}
//<applet code="MyAppletEg.class" width=300 height=300></applet>

0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g