summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/SchriftGroesser.inc
blob: 235d3de53a0644acf7a8863ee4e42adca76cf540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SchriftGroesser.inc */

public void paint(Graphics g)
{
  Font font = getFont();

  if (font.getSize() <= 64) {
    setFont(
      new Font(
        font.getFamily(),
        font.getStyle(),
        font.getSize() + 1
      )
    );
  }
  g.drawString("Hello, World",40,100);
}