Ryerson University, Department of Computer Science

Computer Science II


Assignment 1: Object Oriented Programming and GUIs


Objective: To practice using interfaces, event listeners, graphical components, and subclasses by implementing a simulation of a vending machine. Modify the code ChoiceFrame.java, and ChoiceTest.java from Horstmann's Big Java Chap. 12 so that the interface looks something like the screen capture below.
Date Posted: Mon. Jan. 31, 2005
Due Date: Mon. Feb. 28, 2005
Pair programming: You can do the assignment in pairs or alone.


The user interface works as follows from top to bottom, left to right: Your application should include the following classes: