public class AnnotatedString
extends java.lang.Object
| Constructor and Description |
|---|
AnnotatedString(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMnemonic()
Return the appropriate mnemonic character for this string.
|
int |
getMnemonicIndex() |
static void |
localiseButton(javax.swing.AbstractButton button,
java.lang.String key,
java.lang.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(java.lang.String[] args) |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int getMnemonic()
public int getMnemonicIndex()
public static void main(java.lang.String[] args)
public static void localiseButton(javax.swing.AbstractButton button,
java.lang.String key,
java.lang.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/EscapeFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.