
CHAPTER SUMMARY
12.17 Chapter Summary 917
// register the listener on the 3 buttons
// that you declared in Task 1
// task 5 ends here
After completing each task, compile your code.
When you have finished writing all the code, compile the source code and
run the NestedLayoutPractice application. Try clicking on the three buttons
that you added.
12.17 Chapter Summary
■
A graphical user interface allows the user to interact with an appli-
cation through mouse clicks, mouse movements, the keyboard,
and visual input components.
■
The JFrame class provides the capabilities for creating a window
that will hold GUI components.
■
A constructor in a GUI application