diff options
Diffstat (limited to 'ws2015')
-rw-r--r-- | ws2015/eip/blaetter/04/Schleife.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ws2015/eip/blaetter/04/Schleife.java b/ws2015/eip/blaetter/04/Schleife.java new file mode 100644 index 0000000..8c724b3 --- /dev/null +++ b/ws2015/eip/blaetter/04/Schleife.java | |||
@@ -0,0 +1,21 @@ | |||
1 | import java.awt.Rectangle; | ||
2 | |||
3 | public class VorlageDemo { | ||
4 | |||
5 | public static void main(String[] args) { | ||
6 | int margin = 25; | ||
7 | int box_height = 50; | ||
8 | int box_width = 150; | ||
9 | Rectangle r1 = new Rectangle(margin, margin + box_width, | ||
10 | box_width, box_height); | ||
11 | GraphicsWindow gw = new GraphicsWindow(); | ||
12 | gw.fill(r1); | ||
13 | |||
14 | // ... TODO ... | ||
15 | |||
16 | gw.setText("Klicken Sie zum Beenden."); | ||
17 | gw.mouseClick(); | ||
18 | System.exit(0); | ||
19 | } | ||
20 | |||
21 | } | ||