import java.applet.Applet; import java.awt.Graphics; import java.awt.Font; public class LetterApplet extends Applet { Letter c; public void init() { c = new Letter("a", 36, 0, 0); // create a default letter c.translate(50, 50); // re-position the letter } public void paint(Graphics g) { g.setFont(new Font("Helvetica", Font.BOLD, c.size)); g.drawString(c.name, c.x, c.y); } }