org.jhotdraw.application
Class MyMnemonicText
java.lang.Object
org.jhotdraw.application.MyMnemonicText
public class MyMnemonicText
- extends java.lang.Object
An internal helper class that configures the text and mnemonic
properties for instances of AbstractButton, JLabel, and
javax.swing.Action. It's used like this:
MyMnemonicText.configure(myButton, "Save &As")
The configure method unconditionally sets three properties on the
target object:
- the label text, "Save As"
- the mnemonic key code, VK_A
- the index of the mnemonic character, 5
If the mnemonic marker character isn't present, then the second
two properties are cleared to VK_UNDEFINED (0) and -1 respectively.
Method Summary |
static void |
configure(java.lang.Object target,
java.lang.String markedText)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configure
public static void configure(java.lang.Object target,
java.lang.String markedText)