ScrollPane
Swing component:
JScrollPane
Swing tutorial:
How to Use Scroll Panes
Properties
For border properties see: FlatScrollPaneBorder
Colors
| UI Key | Style Key since v2 | Description |
|---|---|---|
| ScrollPane.background | background | background color |
| ScrollPane.foreground | foreground | unused |
Other
| UI Key | Style Key since v2 | Type | Description |
|---|---|---|---|
| ScrollPane.font | font | Font | unused |
| ScrollPane.border | border | Border | usually a FlatBorder |
| ScrollPane.viewportBorder | viewportBorder | Border | usually null |
| ScrollPane.smoothScrolling | - | boolean | if true, smooth scrolling using trackpads is enabled |
Styling since v2
Following properties are only available via styling (not in UI defaults, but has likewise client properties).
| Style Key | Type | Description | Client Property |
|---|---|---|---|
| showButtons | boolean | if true, shows the scroll arrow buttons |
JScrollBar.showButtons |