O'Reilly logo

Java™ Design Patterns: A Tutorial by James W. Cooper

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required