EN 605.482 GUI Development with the Java Foundation Classes

Homework 3

In this homework, you will use begin to make components that will be used in your Wizard of the next homework.

The requirements for this assignment are as follows. You are to make a series of panels which will be used to initialize the constructor of the PlotPad object from Homework 2. You will design a series of panels, which will be held by a JTabbedPane object, which allows the user to enter the following information:

  1. The size of the Graph in pixels
  2. Allow the user to select whether to show a Sine wave, and if so, set the parameters for plotting a Sine wave (if a Sine wave is desired)
    1. Amplitude
    2. Period
    3. Min X
    4. Max X
    5. Color
  3. Allow the user to select whether to show a Cosine wave, and if so, set the parameters for plotting a Cosine wave (if a Cosine wave is desired)
    1. Amplitude
    2. Period
    3. Min X
    4. Max X
    5. Color
  4. Values for constructing the X and Y axis
    1. Min X Value
    2. Min Y Value
    3. Max X Value
    4. Max Y Value
    5. X tick spacing
    6. Y tick spacing
  5. Formatting for Axis Tick Value Labels (DecimalFormat pattern)
  6. Graph and Axis Labels

At the bottom of the window, you shall have a "verify" button which, when pushed, will verify the fields in the shown tab.


Grading Criteria is as follows:

Item
Points
Program Runs w/ no exceptions
20
Good Layout of Panels
20
Error Checking Performed with adequate feedback
25
Design of UI components (choice of controls)
20
Cover Page Complete
5
Neatness/Presentation
5
Extra Effort
5

 

 

 

 

The above applet shows a sample set of panels that accomplish this tasking.

One of the things you should keep in mind for this homework is the upcoming Homework 5.