Picture of the Relationships

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page

What Swing classes will be used in the program?

Answer:

  • JFrame
  • JButton

Picture of the Relationships

ButtonQuitter Relationships

Here is a picture of the relationships. Unfortunately the boxes and the arrows are not labeled. The name of the frame class is ButtonQuitter. You will need to fill in the labels. Use labels from the following selection:

  • JFrame
  • extends
  • ButtonQuitter
  • ActionListener
  • instance of
  • implements
  • main
  • static
  • JButton
  • action events
  • buttonQuitter frame
  • refers to

QUESTION 20:

Label the relationship diagram. If you have a printer, print out this page and use pencil. Otherwise, do the work mentally.