Course web page: Introduction to Computer Science for majors II James Tam Return to the course web page

CPSC 233: Mini-Assignment #5

Due November 16 at 4 PM

New Concepts to be applied for the assignment

Overview

Everyone starts with a grade point of zero for this assignment. Implementing each of the features below completely and correctly will award you 1.0 grade points (i.e. implementing all four features will result in a grade point of 4.0 being awarded).

Figure 1: Program initially run, JFrame contains a JButton with default text

Figure 2: Button pressed: the text of the button changes to a non-default value

Figure 3: Button pressed: a new  JFrame popup (containing the same non-default text from the button) appears for each press

Figure 4: Clicking on the close window control (top right of the JFrame) will 'dispose' of the control (rather than default 'hide' behavior)

Submitting your work:

  1. Assignments (source code/'dot-java' file) must be electronically submitted according to [the assignment submission requirements] using [D2L]. Zip all your classes together into one zip file and upload the compressed document. Do not use other file formats or your grade may be affected.
  2. As a reminder, you are not allowed to work in groups for this class. Copying the work of another student will be regarded as academic misconduct (cheating).  For additional details about what is and is not okay for this class please refer to the following [link].

 

External libraries that can be used

Unlike the other assignments you will make extensive use of the pre-created Java libraries developed by Sun/Oracle for graphical components (e.g., java.awt., javax.swing), event handling (e.g., java.awt.event) .