public interface IButton
JButton
.
Button texts might have a mnemonic character indicated with the underscore ('_'
). If such indicator is detected, it will be removed from the
visible text and the character following the underscore will be set as the button's mnemonic.
Modifier and Type | Method and Description |
---|---|
javax.swing.JButton |
asButton()
Casts this instance to
JButton . |
void |
configureAsIconButton()
Configures the button to be an "icon button"; only the icon will be displayed.
|
javax.swing.JButton asButton()
JButton
.this
as a JButton
void configureAsIconButton()
It is also recommended to set the pressed icon (with AbstractButton.setPressedIcon(Icon)
); for example to be the same in smaller size (-2 pixels). This
smaller icon can easily be acquired if you use IRIcon
(IRIcon.size(int)
).
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.