Homework #6:
More Swinging
For this homework, you will create an application to
demonstrate your grasp of a number of Swing components.
The requirements for the application are as follows:
-
The application class must be named Swinger06 and must
be a member of a package named cis370.hw06.
-
The application interface must include a menu bar and
a number of Swing components. The components must be laid out
in a logical fashion, and must use panels and layout managers as
necessary to handle resizing of the window acceptably.
-
Each of the components in the window must do something 'interesting'.
This could be changing the value, color, or font of another field,
appending a log message to a scrolling JTextArea,
printing something to System.out,
displaying a picture, or whatever.
-
The window must contain at least the following Swing components:
- Two check boxes.
- One group of at least four radio buttons with a
labelled border.
- Two buttons.
- One combo box.
- A text field with a document filter.
- A text field with a custom formatter.
- A text area with scrollbars.
- As many JLabels as are necessary to make the function of
the other components clear.
-
The menu bar must contain at least the following items:
-
A "File" menu which includes an
"Exit" item which will terminate the application.
- Two checkbox menu items.
- A group of at least four radio button menu items.
-
One button must display an "Open..." dialog which
allows the user to select only files with the extensions
".java", ".html", and ".txt".
-
The application must be thoroughly (but not excessively)
documented with javadoc.
Due date:
The homework is due at the beginning of class on 21 October.
Turn in:
(1) a listing of the source file(s) for the application;
(2) a screen dump of the application in action;
(3) a second screen dump showing the application with its
window resized; and
(4) at least three pages of the javadoc output
for the application.
E-mail:
A Zip or tar archive file containing all of your source files
(including package.html) to
grading@bozoid.com.
The subject of the e-mail should be "Swinger06", and the
archive name should be hw06.zip or hw06.tar.gz.
In addition to your source files, the archive file should include
a text file named readme.txt containing your name and
any other identifying information you think is appropriate.
Do not include .class files, javadoc files,
or screen dumps in the e-mail.
Note: Staple all the pages of your submission
together, and make sure you put your name on your homework!