/* * File: MyHelloProgram.java * ----------------------- * This program displays "hello, world" in the * drawing window and "CS1MD3" at the lower-right * corner. This version uses explicit coordinate * values, which makes the program difficult to extend * or maintain. * * Author: CS1MD3 */ import acm.graphics.*; import acm.program.*; public class MyHelloProgram extends GraphicsProgram { public void run() { /* display "hello, world" */ add(new GLabel("hello, world", 300, 200)); /* display "CS1MD3" at the lower-right corner */ add(new GLabel("CS1MD3", 680, 480)); } }