JAVA 2 Font command

Status
Not open for further replies.

spectra

Baseband Member
Messages
32
Can someone PLEASE put me out of my misery on this? I am simply trying to change the font on JAVA method and am failing miserably.

The code below is compiling A.OK but but it's not changing the displayed font at all. gggrrrrrr.

Any help would be appreciated - as would an online beginners JAVA tutorial because my class at school just isn't cutting it !!!

private void text (Graphics g)

{
g.setColor(new Color(69,139,0));
Font f = new Font ("MonoSpaced",Font.BOLD,18);
g.drawString("Welcome to my world",150,140);
}
 
Status
Not open for further replies.
Back
Top Bottom