Google

Wednesday, June 18, 2008

Changing Fonts and Colors

javatechniques.com:

TextArea text = new TextArea();
Font font = new Font("Serif", Font.ITALIC, 20);
text.setFont(font);
text.setForeground(Color.blue);
f.add(text, BorderLayout.CENTER);