Java Reference
In-Depth Information
LISTING 11.13
continued
DISPLAY
A scroll pane can have a vertical scroll bar on the right of the container as
well as a horizontal scroll bar at the bottom of the container. For each of these,
the programmer can specify that the scroll bars are always used, never used, or
used as needed to view the underlying component. By default, both the vertical
and horizontal scroll bars are used as needed. The TransitMap program relies on
these defaults, and both scroll bars appear because the image is too large in both
height and width.
Search WWH ::




Custom Search