Java Reference
In-Depth Information
JSplitPane : This container allows you to place multiple components in a window. It also
allows the user control over how much of each component is visible. Figure 1-18 shows
an example of a JSplitPane .
Figure 1-18. The Swing JSplitPane
JTabbedPane : This component is like a container whose layout manager is CardLayout
(discussed in Chapter 10), with labeled tabs automatically provided to allow the user
to swap cards. This provides you with the familiar property-sheet motif, as shown in
Figure 1-19.
Figure 1-19. The Swing JTabbedPane
You'll learn about all of these components throughout this topic. Refer to the “Swing
Component to Chapter Mapping” section later in this chapter to see where each component
is covered.
Event Handling and Layout Management
To use the Swing components successfully, you must understand the underlying parts of the
original AWT component set. For instance, the Swing components all support the delegation-
based event model, which was introduced with JDK 1.1 and is supported by the AWT 1.1
component set. In addition, layout managers control screen layout.
Search WWH ::




Custom Search