CS 3744, Assignment 5 - Due March 18, 2010

Instructions

Use the initial version of the VTGUI framework that demonstrates the use of a GUI label. The application code is provided (see HomeworkFive.java) and the main window is an instance of the HomeworkFive class that extends the VTFrame class and has the title "Homework Five". Your task is to extend the code for the framework, as described in the lecture slide set 14. Within the cs3744.gui package, create an event package for event-related classes. Follow the JavaBeans conventions. The HomeworkFive class uses the VTButton class that provides button functionality. One instance of VTButton and one or more instances of VTLabel class are placed in VTPanel. The layout is provided through the VTGridLayout class. Look at the Java Swing API documentation for the similar classes and determine the minimum set of methods that support the required functionality. Use those methods to define an API for each of the classes.

Homework Five example (see hw5.png)

  1. Initially, the layout is similar to the one in Homework Four.
  2. First click removes the second label and changes the layout.
  3. Second click adds the second label and changes the layout.
  4. Subsequent clicks alternate between 2. and 3.
A sample implementation of classes event package (except for those required for the submission) is provided (see hw5event.jar).

Instructions

Additional Resources