JScrollPane and TableScrollPane

Visual Swing and dbSwing components - lists, tables, text components, etc. - do not have scrolling behavior built into them. Instead, these components are usually placed in scroll panes, which handle their scrolling. Scroll panes are sometimes used together with JSplitPane.

Swing's scroll pane is JScrollPane. dbSwing provides TableScrollPane, an extension of JScrollPane. Its scrollbars are a little longer, filling the corners that a table component usually leaves unused. It also has several properties that enhance vertical scrolling behavior, especially with very long tables. TableScrollPane is most useful as a container for JTable or JdbTable, but can be used with any scrollable component.

Manipulating scroll panes in JBuilder's UI Designer is initially a bit tricky. When a scroll pane contains a scrollable component, a mouse click will select the contained component, not the scroll pane. Use Alt+click to select the scroll pane, or click it in the component tree. "Handles" (small dark squares) will appear at the corners and center of the scroll pane. Drag the handle in the center to move the scroll pane, or right-click directly on the handle to open the scroll pane's popup menu.