Chapter 34. Sandy and the Mediator
Sandy and Arthur work at different branches of a large company several thousand miles apart. Sandy began writing a program to learn how to use the Swing classes and eventually integrated the program into her work assignment. She started by using a JTabbedPane component and a JTree component. Then she added the Swing JToolBar component, as well as several toolbar buttons to control the program commands.
As she began to experiment with displaying various kinds of data, she realized that she could use a JTextField to enter a search query and the JTree to display a list of suggested query refinement terms, as shown in Figure 34.1.
Figure 34.1. A display with a number of interacting elements.
Then she realized that ...
Get Java™ Design Patterns: A Tutorial now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.