public void paint(Graphics g0)
    {
    Graphics2D g = (Graphics2D) g0;
  FontRenderContext frc = g.getFontRenderContext();
  Font f = new Font("Serif", Font.BOLD, 24);
  String s = new String("Web Techniques");
  TextLayout tl = new TextLayout(s, f, frc);
  g.setColor(Color.red);
  tl.draw(g, 20, 20);
  }