ITSE 2317 Intermediate Java Incorporating GUI Components into a World Object Lecture # 03 Run: Wed Sep 08 09:24:46 CDT 2010 Baldwin Slides aa - ITSE 2317 Intermediate Java ab - Incorporating GUI Components into a World Object ac - Figures ad - Listings ae - Preview af - Program specifications ag - The first output image ah - Click the button ai - Multiple clicks aj - Repaint is automatic ak - Modify Ericson's World class al - Add a JButton to the World am - Register an action listener an - Program behavior ao - Analysis ap - Add a getFrame method aq - Add a button ar - Pack the frame as - Modification to the World class at - A reference to a JFrame object au - Getting access to the frame av - No other change is required aw - The Prob03Runner class ax - The driver class ay - Beginning of the Prob03Runner class az - The constructor for the Prob03Runner class ba - Beginning of the run method bb - A new World object bc - A final reference variable bd - The size of the world... be - The size of the picture... bf - Get a reference to the frame bg - A new JButton object bh - Add the button to the frame bi - Pack the frame bj - The final size of the world bk - The expansion in height... bl - Register an action listener on the button bm - An anonymous class is not required bn - Beginning of the anonymous class bo - Unfamiliar with anonymous classes? bp - In a nutshell... bq - Behavior of the actionPerformed method br - Set the background picture to blue bs - Display the student's name on the picture bt - Add a turtle to the world bu - End the run method bv - Run the program bw - Summary bx - Complete program listings by - Spare slide template |
-end-