Assignment 3
Due: Thursday, October 6, 2005
Grading(Maximum Score 100):
Initial score is based on the proper use of classes and object oriented concepts. Points will be taken off for not meeting all requirements. 5 points will be taken off for each class or method that does not have documentation! Documentation is defined as a written description of what the method or class does. This can be as short as a couple words or as long as a paragraph. Documentation MUST be in JavaDoc Format!
Overview:
This assignment will use what you've learned about creating GUI interfaces by creating a main menu for a game.
Detail:
In this assignment you will create 4 frames. The main menu frame will be used to open the other 3 frames via button events.
The Main Frame:
Implement a frame with 4 buttons:
'Start Game' will open a new frame. (The Game Frame)
'Options' will open a new frame. (The Options Frame)
'About Game' will open a new frame. (The About Frame)
'Exit' will gracefully exit the Game (DO NOT USE THE FUNCTION exit( int i ) !!!!!! )
The Game Frame
Display a blank frame. Make sure you can only open one of these frames, and that when you close this frame it does not close the application. Optional: Disable the main menu while this is open!
The Options Frame
Implement a Frame with the following interface:
One Combo-Box Selecting Game Difficulty (easy, medium, hard... or something similar)
One Button OK (Closes the frame, and saves option)
One Button Cancel (Closes the frame, and does not save option)
Make sure you can only open one of these frames, and that when you close this frame it does not close the application. Optional: Disable the main menu while this is open!
The About Game Frame
This frame will display your name, the name of the program, and the 'version' number of the program.
Make sure you can only open one of these frames, and that when you close this frame it does not close the application. Optional: Disable the main menu while this is open!
Hand In:
A print out of you code.
Screen shots of you frames. (Each OS handles this differently, but ALT-PrintScreen usually works to copy the image. Use paste to paste the image into a document...)