email me at borlaj@portlandschools.org
notes previous (09/07/06) submit the dump links  
 

Fonts:

 

Fonts can be set as part of the graphics and font classes. For example to change the font and then print it out, I could type the lines below:

g.setFont(new Font("Helvetica", Font.PLAIN, 22));
g.drawString("created by BlueJ", 100, 200);

 

Instead of "Helvetica", I could replace that with any system font. Instead of 22, I could replace that will any size. Instead of Font.PLAIN, I could replace that with Font.BOLD or Font.ITALIC, or a few others.

See this site for more examples.

See the font class.