CHAPTER 7 ■ WRITING A USER INTERFACE
Figure 7-5. A finished MineSweeper game
Summary
In this chapter, you saw a number of Swing applications, of steadily increasing complexity, culminating
in a larger application that implements our own version of a common and popular game. It made for a
long chapter and a lot of code, but it shows our first real-world example. We create several more real
applications as we proceed throughout the rest of the book, but none of them are as large as the
MineSweeper game.
In the course of writing those applications, we saw that:
- Swing applications can become verbose (a problem that plagues all user-interface
frameworks). - The starting point for a Swing application is a JFrame object, because it gives us a
window. - The place to add components is in the content pane.