You will be using some of the knowledge you have about graphics to create finish the code of a program that has already been started. You will also learn in recitation this week how to create the Java code so that your program does not need the DrJava interactions pane to run.
We will concentrate on the following ideas that were discussed in class:
You can find information about the graphics library and functionality available in it here (this is linked from the Course Resources page as well).
You are creating a program that when run opens a window that allows the user to draw a limited set of graphics to the screen. The window will have four user controls (buttons) that will allow the user to do the following things:
You will find that some of the code already written for you when you download the lab skeleton. Please take note of the fact that some of the code you have been given should not be modified, while other parts most certainly need to be modified to complete the tasks of the lab.
The files you download are already set to create a stand-alone program. To run the program, select the App class in the package explorer, right click and select "Run As -> Java Application". You will not need to use the DrJava window for this assignment.
You will submit your Lab 4 assignment using the Web-CAT submission plugin from Eclipse. The entire lab work will be due the day before your recitation meets the week of March 1st. For your reference, consult the table below for due dates.
Recitation | Lab 4 due |
---|---|
A6 | Sunday, February 28th at 11:00pm |
A1 | Monday, March 1st at 11:00pm |
A2 & A5 | Tuesday, March 2nd at 11:00pm |
A3 | Wednesday, March 3rd at 11:00pm |
A4 | Thursday, March 4th at 11:00pm |
Lab authored by Adrienne Decker
Page maintained by Adrienne Decker
Contact: adrienne@buffalo.edu | 130 Bell Hall | (716)645-3184