Validated by Amaya

Richard G Baldwin (512) 223-4758, NRG Room 4238, Baldwin@DickBaldwin.com, http://www.austincc.edu/baldwin

INEW 2338 Advanced Java Programming

Assignment 7 - JavaBeans - Chapter 9

Revised 01/09/10 for Amays compatibility

The files that you deliver for this assignment must include a controlling class file named Asg07.class plus all of the source code files that you compiled to produce your class files.

Click here for general requirements regarding all programming assignments.

Click here to download a zip file containing a sample version of this assignment.  Your application must replicate the look, feel, and behavior of this sample except that your name must be included in the output of your version of the application where indicated.

Before you start writing this assignment, you should study the study guide entitled JavaBeans.

Write the Java application described below.

The purpose of this program is to get and display the properties, events, and methods of any JavaBeans component in a GUI in the format shown in Figure 1.

The GUI is 400 pixels wide and 480 pixels high.

Your name must appear in the banner at the top of the GUI.

The bean identified as javax.swing.JComponent appears in the text field at the bottom of the GUI by default when the program starts running.

When the fully-qualified name of any bean class is entered into the text field at the bottom and the OK button is pressed, a list of the properties, events, and methods for the bean class must appear in the three white boxes in the order shown in Figure 1.  (Note that information regarding superclasses of the bean class is not displayed in the GUI.)

If there is too much material to fit in any white box, the box must become scrollable so that it is possible to scroll the box and view all of the material.

The first line in each white box must be a label for the box showing PROPERTIES, EVENTS, or METHODS as shown in Figure 1.

Each property is identified by its name.  The type of the property appears under the name indented by two spaces.  The properties are sorted into ascending alphabetical order based on the property name.

Each event type is identified by its name.  The event handler methods for each event type appear under the event type indented by two spaces.  The event types are sorted into ascending alphabetical order based on the name of the event type.

The methods are sorted into ascending alphabetical order based on the name of the method.

Figure 2 shows a sample of the required program output for a different bean.


Figure 1 Program output GUI.


Figure 2 Program output for a different bean.

-end-

File:  Asg07.htm