Java Tutorial/Swing/ScrollPaneLayout

Материал из Java эксперт
Перейти к: навигация, поиск

Working with ScrollPaneLayout

ScrollPaneLayout Locations



   <source lang="java">

Location Data Type Description COLUMN_HEADER JViewport Usually empty. If main content is a table, serves as column headers. HORIZONTAL_SCROLLBAR JScrollBar A scrollbar for the main content region. LOWER_LEFT_CORNER Component Usually empty. For a region in the lower-left corner. LOWER_RIGHT_CORNER Component Usually empty. For a region in the lower-right corner. ROW_HEADER JViewport Usually empty. If main content is a table, serves as row labels. UPPER_LEFT_CORNER Component Usually empty. For a graphic in the upper-left corner. UPPER_RIGHT_CORNER Component Usually empty. For a graphic in the upper-right corner. VERTICAL_SCROLLBAR JScrollBar A scrollbar for the main content region, placed to the right of the VIEWPORT JViewport The main content area.</source>