F O R · R E A L L Y · T H I N · C L I E N T S
 Home  |  Overview  |  Widgets  |  Demo  |  License  |  History 

» 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
NameTypeDefaultDescription
textstringnull The text string that the button displays.
iconiconnull The icon image that the button displays.
alignmentchoicecenter The alignment of the text and image similar to label. Possible values are: center, left, and right. The default value is center.
mnemonicinteger-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.
actionmethodnull 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
OperationAction
SpacebarActivates button
Tab, Shift-TabNavigate forward, backward

Copyright © 2002 Robert Bajzat - info@thinlet.com - All rights reserved.