summaryrefslogtreecommitdiff
path: root/ws2015/eip/blaetter/04/VorlageDemo.java
blob: 8c724b3c5968e26b0ac37a5ff19780133fcdce80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.awt.Rectangle;

public class VorlageDemo {

    public static void main(String[] args) {
        int margin     = 25;
        int box_height = 50;
        int box_width  = 150;
        Rectangle r1 = new Rectangle(margin, margin + box_width,
                                     box_width, box_height);
        GraphicsWindow gw = new GraphicsWindow();
        gw.fill(r1);

        // ... TODO ...

        gw.setText("Klicken Sie zum Beenden.");
        gw.mouseClick();
        System.exit(0);
    }

}