| java.lang.Object org.columba.core.gui.base.MnemonicSetter
MnemonicSetter | public class MnemonicSetter (Code) | | This class contains utility methods to set text on buttons, checkboxes,
menus, menuitems and labels with mnemonics. The mnemonics is to be specified
using the & character in the display text just before the mnemonic character.
The first & character in the display text is used to define the mnemonic.
Please be aware of this when trying to set display texts containing a &
character.
author: Karl Peder Olesen (karlpeder) |
setTextWithMnemonic | public static void setTextWithMnemonic(AbstractButton component, String text)(Code) | | Sets the text of a menu, menuitem, button or checkbox. If a & character
is found, it is used to define the mnemonic. Else the text is set just as
if the setText method of the component was called.
Parameters: component - Menu, menuitem, button or checkbox to handle Parameters: text - Displaytext, possibly including & for mnemonic specification |
setTextWithMnemonic | public static void setTextWithMnemonic(JLabel label, String text)(Code) | | Sets the text of a label including mnemonic.
Same functionality as
See Also: setTextWithMnemonic Parameters: label - Label to handle Parameters: text - Displaytext, possibly including & for mnemonic specification |
|
|