import java.awt.Font;

public class DigitalClock3 extends DigitalClock2 {

  public void init() {
    super.init();
    String param = getParameter("FONT");

    if ("Serif".equals(param)) {
      font = new Font("Serif", Font.BOLD,48);
    } else if ("SansSerif".equals(param)) {
           font = new Font("SansSerif", font.BOLD,48);
    } else if ("Dialog".equals(param)) {
           font = new Font("Dialog", Font.BOLD,48);
    } else if ("DialogInput".equals(param)) {
           font = new Font("DialogInput", Font.BOLD,48);
    } else {
           font = new Font("Monospaced", Font.BOLD,48);
    }
  }
}

