Author: Ron K. Cytron
| Lab |
Assigned |
Design Due (In class) 10 AM |
Implement (In Lab) Wednesday |
Demo (In Lab) Wednesday |
Lab Due (In lab) Wednesday |
| | 14 | Jan |
| |
15 | Jan |
22 | Jan |
22 | Jan |
Goals:
By the end of this lab, you should...
-
Be famliar with some simple Swing components and layouts.
-
Understand how to write a Java program with a
main method.
-
Understand how actions trigger code execution in an event-driven model.
Before starting:
Helpful resources:
Assignment:
Well, just write code that creates the JFrame as exmplified by the solution
posted above (your solution need not be an applet).
What To Turn In:
For every CS102 lab you turn in, you should fill in
a cover
sheet and staple it on the front of your lab.
Attach a paper printout of the following:
- your
SwingDemo.java file containing the methods you wrote
This must be turned in by
the end of your lab section
on the due date. Check that you have
header information (name, email, date, and lab section) at the top of the
file, and you must have demonstrated your lab to have the printout graded.
If you need
help printing, ask a TA or refer to the help homepage, which has detailed
instructions for how to print from the labs.
Last modified 14:23:10 CST 15 January 2003
by Ron K. Cytron