A good answer might be:

  1. Components that make up the Graphical User Interface.
  2. Listeners that receive the events and respond to them.
  3. Application code that does useful work for the user.

Java GUI Programming

In writing a GUI application you write code for each of these three tasks (while keeping the big picture in mind.) There are several ways to organize the code for these tasks. If you keep the big picture in mind, the details about the various options will fall into perspective.

So far our ezGUI example has only done the first task. There are no event listeners nor application code. Our program has defined a myFrame class, instantiated it, and displayed it on the monitor. Usually the first task would also involve adding other GUI components (such as buttons and text fields) to the Frame. We will get to this later on.

QUESTION 2:

(Review: ) what is the name for a class such as the Window class or the Frame class that contains other GUI components?

Click Here after you have answered the question