CSC 8310 BlueJ Assignment
David Matuszek, Villanova University, Summer 2001 |
This is the first Java assignment. Since it is quite simple, it will be worth
only 50 points, instead of the usual 100 points.
- Download and install Java 2, if you have not done so already.
http://java.sun.com/j2se/1.3/
(You can skip this step if you use the Villanova lab machines, since Java
is already installed there.)
- Download and install BlueJ.
BlueJ is a baby IDE (Interactive Development Environment) for Java.
It is very simple to use but contains basic versions of all the tools we need,
such as an editor and a debugger.
http://www.bluej.org/
Also download (or use online) the BlueJ tutorial:
http://bluej.monash.edu/tutorial/tutorial.pdf
Note: programs installed on the lab machines are not guaranteed to still be
there the next time you come to the lab.
- Step through the BlueJ tutorial.
As you work through the tutorial, you will notice that it contains some minor
inconsistencies, where the BlueJ program isn't exactly as the tutorial shows.
Make a list of these inconsistencies. None of the errors are seriously
confusing. Work through the entire tutorial; one error is quite near the end.
BlueJ is a pretty nice program, but it has a few bugs. Make a second list
of any bugs you find in the program. You should find all the errors in
the tutorial, but you may not encounter the same bugs that I did.
- Add numbers to the
appletClock program.
One of the examples used in the tutorial is a clock applet. The clock shows
only the numbers 12, 3, 6, and 9. After you have finished the tutorial, copy
this applet into a new project and add the remaining eight numbers (1, 2,
4, 5, 7, 8, 10, 11) to the clock. You should be able to complete this assignment
even if you have no prior knowledge of Java, simply by studing the code that
is already there.
Turn in: A floppy with a proper label (not something taped on), with
your name and the name of the project written on the label. The floppy should
contain:
- A
readme.txt file containing the two lists of errors that you
found, and
- Your revised
appletClock program.
Due date: June 21.