diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-17 09:08:19 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-17 09:08:19 +0100 |
commit | 58e81bad2e28286d61f097c26255bc29d72d7bee (patch) | |
tree | 1d2dd07a505f38f21ccf3e1d54b6beb7ae418df8 /ws2015/eip/blaetter | |
parent | 237156164e76165a269ad5686a5a826e0f37df58 (diff) | |
download | uni-58e81bad2e28286d61f097c26255bc29d72d7bee.tar uni-58e81bad2e28286d61f097c26255bc29d72d7bee.tar.gz uni-58e81bad2e28286d61f097c26255bc29d72d7bee.tar.bz2 uni-58e81bad2e28286d61f097c26255bc29d72d7bee.tar.xz uni-58e81bad2e28286d61f097c26255bc29d72d7bee.zip |
Copied hint to use as solution framework
Diffstat (limited to 'ws2015/eip/blaetter')
-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 | } | ||