Package-level declarations

Types

Link copied to clipboard

What a style can set on a component backed by a javax.swing.AbstractButton: any button or menu item.

Link copied to clipboard

What a style can set on a button that has a checked state.

Link copied to clipboard

ComboBox: the properties of a JComboBox.

Link copied to clipboard

Label: the properties of a JLabel.

Link copied to clipboard

ListBox: the properties of a JList.

Link copied to clipboard

Menu: a button that holds menu items. Its style may provide nested styles for them.

Link copied to clipboard

ProgressBar: the properties of a JProgressBar.

Link copied to clipboard

What a style can set on a button that has a selected state.

Link copied to clipboard

TextField, PasswordField and FormattedTextField: the properties of a JTextField.

Link copied to clipboard

TextField, PasswordField, FormattedTextField, TextArea, EditorPane and TextPane: the properties of a JTextComponent.

Link copied to clipboard

ToolBar: a container with the properties of a JToolBar.

Properties

Link copied to clipboard

Styles provided for every Button.

Link copied to clipboard

Styles provided for every CheckBox.

Link copied to clipboard

Styles provided for every CheckBoxMenuItem.

Link copied to clipboard

Styles provided for every ComboBox.

Link copied to clipboard

Styles provided for every DesktopPane.

Link copied to clipboard

Styles provided for every EditorPane.

Link copied to clipboard

Styles provided for every Spacer, Strut, Glue and RigidArea.

Link copied to clipboard

Styles provided for every FormattedTextField.

Link copied to clipboard

Styles provided for every glass pane that the GlassPane of a Layer or an InternalFrame declares.

Link copied to clipboard

Styles provided for every InternalFrame.

Link copied to clipboard

Styles provided for every Label.

Link copied to clipboard

Styles provided for every LayeredPane.

Link copied to clipboard

Styles provided for every Layer.

Link copied to clipboard

Styles provided for every ListBox.

Link copied to clipboard

Styles provided for every MenuItem.

Link copied to clipboard

Styles provided for every Menu.

Link copied to clipboard

Styles provided for every Panel.

Link copied to clipboard

Styles provided for every PasswordField.

Link copied to clipboard

Styles provided for every ProgressBar.

Link copied to clipboard

Styles provided for every RadioButtonMenuItem and every RadioButtonMenuGroup option.

Link copied to clipboard

Styles provided for every RadioButton and every RadioGroup option.

Link copied to clipboard

Styles provided for every RadioGroup: the panel that holds its options. Its options apply RadioButtons.

Link copied to clipboard

Styles provided for every scroll bar that a ScrollPane's VerticalScrollbar or HorizontalScrollbar declares.

Link copied to clipboard

Styles provided for every ScrollPane.

Link copied to clipboard

Styles provided for every Separator, ToolBarSeparator and MenuSeparator.

Link copied to clipboard

Styles provided for every Slider.

Link copied to clipboard

Styles provided for every Spinner.

Link copied to clipboard

Styles provided for every SplitPane.

Link copied to clipboard

Styles provided for every TabbedPane.

Link copied to clipboard

Styles provided for every table header that a Table's Header declares.

Link copied to clipboard

Styles provided for every Table.

Link copied to clipboard

Styles provided for every TextArea.

Link copied to clipboard

Styles provided for every TextField.

Link copied to clipboard

Styles provided for every TextPane.

Link copied to clipboard

Styles provided for every ToggleButton.

Link copied to clipboard

Styles provided for every ToolBar.

Link copied to clipboard

Styles provided for every Tree.

Link copied to clipboard

Styles provided for every viewport that a ScrollPane's Viewport declares.

Functions

Link copied to clipboard

Sets the command string a button puts on the ActionEvent it fires, read back as event.actionCommand. It tells two buttons apart inside one shared listener, and it stays put when the button's text changes with the locale. null restores the default, where a button reports its own text as the command.

Link copied to clipboard

Sets whether a button paints its border.

Sets whether a progress bar paints its border.

Sets whether a tool bar paints its border.

Link copied to clipboard

Installs caret as the text component's caret. A style that stops setting it restores the component's previous caret.

Link copied to clipboard

Sets the delay in milliseconds between showing and hiding the component's caret. 0 disables blinking.

Link copied to clipboard

Sets the color of the caret in a text component.

Link copied to clipboard

Sets how document edits affect the caret's position and scrolling.

Link copied to clipboard
inline fun CheckableStyleScope.checked(block: () -> Unit)

Runs block while the component is declared checked. A change of checked runs the style again.

Link copied to clipboard

Sets whether a button fills the area behind its content.

Link copied to clipboard

Sets the icon a button displays while it is disabled; null hands the state back to the look and feel, which grays the base icon for it.

Link copied to clipboard

Sets the icon a button displays while it is both disabled and selected; null hands the state back to the look and feel, which grays selectedIcon for it, or falls back to the disabled icon where the button carries no selected icon.

Link copied to clipboard

Sets the color text is drawn in while the component is disabled.

Link copied to clipboard

Sets which occurrence of the mnemonic letter in the button's text is underlined, as a zero-based index into the text; -1 underlines none of them. Use it when the letter appears more than once and the first one is not the one to decorate - displayedMnemonicIndex(5) underlines the A of Save As.

Sets which occurrence of the mnemonic letter in the label's text is underlined, as a zero-based index into the text; -1 underlines none of them. Use it when the letter appears more than once and the first one is not the one to decorate - displayedMnemonicIndex(5) underlines the A of Save As.

Link copied to clipboard

The key that moves the keyboard focus to this text component when pressed with the platform's accelerator modifier - Alt on Windows and Linux, Ctrl+Alt on macOS. It reaches the component from anywhere in the focused window, so a form's fields can be jumped to without tabbing through it.

Link copied to clipboard

Sets whether a button paints the indicator showing it holds keyboard focus.

Link copied to clipboard

Marks up ranges of a text component with painter - the background a search draws behind its matches, the wash behind an error span, the squiggle under a misspelling.

Link copied to clipboard

Sets where a button's content sits along its width, when it is given more width than it needs.

Sets where a label's content sits along its width, when it is given more width than it needs.

Sets where a text field's text sits along its width, when it is given more width than it needs.

Link copied to clipboard

Sets which side of the icon a button draws its text on; a button with no icon lays out the same either way.

Sets which side of the icon a label draws its text on; a label with no icon lays out the same either way.

Link copied to clipboard

Sets the icon a button displays beside its text; null displays none.

Sets the icon a label displays beside its text; null displays none.

Link copied to clipboard

Sets the space between a button's icon and its text.

Sets the space between a label's icon and its text.

Link copied to clipboard

Sets the space a button keeps between its border and its content.

Sets the space a text component keeps between its border and its text.

Link copied to clipboard

Sets the button's keyboard mnemonic to the key that types mnemonic, resolved with KeyEvent.getExtendedKeyCodeForChar - so 's' and 'S' both set the S key. A character that appears on no known keyboard layout resolves to KeyEvent.VK_UNDEFINED, setting no mnemonic.

Sets the button's keyboard mnemonic to the key identified by keyCode, a KeyEvent.VK_* value. KeyEvent.VK_UNDEFINED sets no mnemonic.

Sets the label's keyboard mnemonic to the key that types mnemonic, resolved with KeyEvent.getExtendedKeyCodeForChar - so 's' and 'S' both set the S key. A character that appears on no known keyboard layout resolves to KeyEvent.VK_UNDEFINED, setting no mnemonic.

Sets the label's keyboard mnemonic to the key identified by keyCode, a KeyEvent.VK_* value. KeyEvent.VK_UNDEFINED sets no mnemonic.

Link copied to clipboard

Sets the icon a button displays while it is held down; null falls back to the base icon.

Link copied to clipboard

Sets whether a button paints its rollover state - the look it takes while the pointer is over it.

Link copied to clipboard

Sets the icon a button displays while the pointer is over it; null falls back to the base icon. Setting it switches rolloverEnabled on.

Link copied to clipboard

Sets the icon a button displays while the pointer is over it and it is selected; null falls back to selectedIcon. Setting it switches rolloverEnabled on.

Link copied to clipboard
inline fun SelectableStyleScope.selected(block: () -> Unit)

Runs block while the component is declared selected. A change of selected runs the style again.

Link copied to clipboard

Sets the icon a button displays while it is selected - a checked check box, an on toggle button; null falls back to the base icon.

Link copied to clipboard

Sets the color selected text is drawn in.

Link copied to clipboard

Sets the background painted behind selected text in a text component.

Link copied to clipboard

Sets where a button's content sits along its height, when it is given more height than it needs.

Sets where a label's content sits along its height, when it is given more height than it needs.

Link copied to clipboard

Sets whether a button draws its text above, across or below the icon; a button with no icon lays out the same either way.

Sets whether a label draws its text above, across or below the icon; a label with no icon lays out the same either way.