ui([id], [options])
Class: SwingUI.
Description:
Gets or sets Java's GUI look and feel ID. Obtain a list of supported UIs by the system using ui.list getter property.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string |
Identifies of Java Swing's UI to be used. |
|
|
object |
Additional look-and-feel options. Options apply only to some look-and-feels, like FlatLaf. Example: {border-radius: 5}. |
Returns:
When setting arguments, this instance of SwingUI is returned, otherwise current value is returned.
Type: string | SwingUI
Throws:
- Error When argument is invalid.
Examples:
Setting FlatDarkLaf UI with all options
ui.ui(
"FlatDarkLaf",
{
borderRadius:8,
showScrollbarButtons: true,
scrollbarSize: 14,
selectedTabColor: "#FFFFFF",
scrollbarColor: "#FF7777",
arrowType: "triangle" // "triangle" or "chevron" (default)
}
);
