How To Print Color Text In Java Console

How To Print Color Text In Java Console

How To Print Color Text In Java Console

how to print color text in java console,how to change background color in java,how to change text color in java,java modeling in color with uml,how to change button color in java swing
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>

Post a Comment

0 Comments