PopupMenu
Swing components:
JPopupMenu
Swing tutorial:
How to Use Menus
Properties
Colors
UI Key | Style Key since v2 | Description |
---|---|---|
PopupMenu.background | background | background color |
PopupMenu.foreground | foreground | unused |
PopupMenu.borderColor | borderColor | border color |
Sizes
UI Key | Style Key since v2 | Type | Description |
---|---|---|---|
PopupMenu.borderInsets | borderInsets | Insets | space between the popup bounds and the menu items (includes the space needed to paint a 1 pixel border) |
PopupMenu.borderCornerRadius since v3.1 | - | int | popup border corner radius for native borders Note that this is not available on all platforms since it requires special support. Supported platforms:
|
PopupMenu.roundedBorderWidth since v3.3 | - | int or float | popup border width for native borders Note that this is not available on all platforms since it requires special support. Supported platforms:
|
Other
UI Key | Style Key since v2 | Type | Description |
---|---|---|---|
PopupMenu.font | font | Font | unused |
PopupMenu.border | border | Border | usually a FlatPopupMenuBorder |