summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Schriften.inc
blob: abab9561f2a195b03bf99cea91fad3d42d2df59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Schriften.inc */

public void paint(Graphics g)
{
  Font font;
  String[] arfonts = {"Serif","SansSerif","Monospaced"};

  for (int i=0; i<arfonts.length; ++i) {
    font = new Font(arfonts[i],Font.PLAIN,36);
    g.setFont(font);
    g.drawString(arfonts[i],10,30 + (i+1)*(36+5));
  }
}