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); } }