previous |
start |
next
Text and Fonts
- Specify text and base point:
g2.drawString("Applet", 50, 100);
- Font object has
-
- face name (Serif, SansSerif, Monospaced, ...)
- style (Font.PLAIN, Font.BOLD,
Font.ITALIC )
- point size (12 point = normal size)
- g2.setFont(new Font("Serif", Font.BOLD, 36));
previous |
start |
next