public class AnnotatedString extends Object
| Constructor and Description |
|---|
AnnotatedString(String s) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMnemonic()
Return the appropriate mnemonic character for this string.
|
int |
getMnemonicIndex() |
static void |
localiseButton(AbstractButton button,
String key,
String defaultString,
boolean setMnemonic)
Localise the given AbstractButton, setting the text and optionally
mnemonic Note that AbstractButton includes menus and menu items.
|
static void |
main(String[] args) |
String |
toString() |
public AnnotatedString(String s)
public int getMnemonic()
public int getMnemonicIndex()
public static void main(String[] args)
public static void localiseButton(AbstractButton button, String key, String defaultString, boolean setMnemonic)
button - The button to localisekey - The key to look up in resource bundledefaultString - default String to use if key not foundsetMnemonic - whether or not to set the mnemonic. According to Sun's
guidelines, default/cancel buttons should not have mnemonics
but instead should use Return/EscapeCopyright © 2003–2015. All rights reserved.