|
» Component » Label » Button » CheckBox » ComboBox » TextField » PasswordField » TextArea » TabbedPane » Panel » Desktop » Dialog » SpinBox » ProgressBar » Slider » SplitPane » List » Table » Tree » Separator » MenuBar
|
|
|
Button
The following button displays a short text string and an image.
Its content is on the left and centered vertically.
<button text="Button" icon="image.gif" alignment="left" tooltip="ToolTip" /> |
Parameters
Name | Type | Default | Description | text | string | null |
The text string that the button displays.
|
icon | icon | null |
The icon image that the button displays.
|
alignment | choice | center |
The alignment of the text and image similar to label.
Possible values are: center, left, and right. The default value is center.
|
mnemonic | integer | -1 |
Specifies the underlined char and the key combination (alt+mnemonic)
which invokes the (not necessarily focused, but enabled and visible)
button's action listener.
|
action | method | null |
Invokes the given method when the button is pressed by mouse or keyboard.
|
name, enabled, visible, tooltip, width, height, colspan, rowspan,
weightx, weighty, halign, and valign parameters are similar to component
|
Keyboard-actions
Operation | Action | Spacebar | Activates button |
Tab, Shift-Tab | Navigate forward, backward |
|