␡
- Adapting to an Interface
- Class and Object Adapters
- Adapting Data for a JTable
- Identifying Adapters
- Summary
This chapter is from the book
Identifying Adapters
In Chapter 2, you explained the value of the WindowAdapter class. The MouseAdapter class, as Figure 3.11 shows, is another example of a class that stubs out the methods required by an interface.
Figure 3.11 The MouseAdapter class stubs out the requirements of the MouseListener interface.