Java Reference
In-Depth Information
The configurable options are the placement of the tabs used to change which component
to display and the tab layout policy for when there are too many tabs to span one virtual row
(which could be a column). By default, tabs are at the top of the container and will wrap to
multiple rows when too many exist for the container width. However, you can explicitly specify
a location with one of the following constants of JTabbedPane : TOP , BOTTOM , LEFT , or RIGHT or
configure the layout policy with one of SCROLL_TAB_LAYOUT or WRAP_TAP_LAYOUT . Figure 11-11
shows the screen from Figure 11-10 with the other three tab placements. Figure 11-12 shows
the screen with the scroll tab layout.
Figure 11-11. JTabbedPane tab placement options
Caution Setting the tab placement to something other than the equivalent values for the JTabbedPane
constants of TOP , BOTTOM , LEFT , or RIGHT , or the layout policy to something other than the equivalent of
SCROLL_TAB_LAYOUT or WRAP_TAP_LAYOUT , will cause an IllegalArgumentException to be thrown.
 
Search WWH ::




Custom Search