- (20 points) 4 points per question.
- (80 points) Slider application
- Presentation
- (20 points) The elements of the slider view are
correctly displayed (i.e., decrement button is on the left side
of the display, the increment button is on the right side of the
display, and the slider is in the middle of the display)
- (5 points) Value label is on top of the display
- (5 points) The initial default value of the slider corresponds to the default value provided by the user
- Behavior
- (4 points) Slider's value ranges from the minimum to the maximum value provided by the user
- (10 points) Value label updates when the slider is moved
- (4 points) Increment button increments the slider value by the amount specified by the user.
- (4 points) Decrement button decrements the slider value by the amount specified by the user.
- (5 points) When the increment/decrement button is clicked,
the value label is updated
- (4 points) When the slider value is not at its
maximum/minimum value and the increment/decrement button would
cause the slider to move outside its acceptable range, the
value is incremented/decremented to the maximum/minimum value.
- (4 points) When the slider value is at its
maximum/minimum value and the increment/decrement button would
cause the slider to move outside its acceptable range, the
dialog box is popped up with an appropriate error
message.
- (15 points) Program Design
- (5 points): Each of the two views uses its own JPanel
- (10 points): Your judgement--If you see things that
look egregiously bad, make appropriate deductions.