Lab 1

A Simple Graphical User Interface

January 19, 2006

Lab Partners

Everyone should work with one lab partner on this assignment. If you don't know anyone, just ask your lab TA and he will help you to find one. When you work with a partner, submit just one solution with both of your names on it.

Objective

The goal of this lab is to help you become better acquainted with the javax.swing and java.awt packages.

Assignment

Reconstruct Panama's flag as closely as you can during the lab period.

General Note

The purpose of the in-labs is to help familiarize you with concepts that we have been covering in lecture and in the readings.

Although I design the in-labs to take an average pair of people working together about 90 minutes to complete, I will sometimes overestimate or underestimate this time.

If you are unable to entirely complete the assignment during the lab, don't worry - just hand in whatever you did accomplish. All in-lab work is due at the end of your in-lab period. Partial credit will be given for what you have done. Remember that each in-lab is only worth 1% of your course grade. Furthermore, in-labs will be curved if necessary.

Requirements and Grading

What to Submit

E-mail your code to your lab TA in one message with the following subject: CS 221-xx inlab1 name1, name2. The xx is the number of your lab section.

Before You Leave

Delete the BlueJ project that you created. Empty the recycle bin. Thank you.