edu.rice.comp211.laundry.ui
Class MnemonicHelper
java.lang.Object
edu.rice.comp211.laundry.ui.MnemonicHelper
public final class MnemonicHelper
- extends Object
Helper class for creating buttons and menus. If an & is present in the
text, it is mapped to the mnemonic.
- Author:
- sky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createMenu
public static JMenu createMenu(String text)
createMenuItem
public static JMenuItem createMenuItem(JMenu parent,
String text)
createMenuItem
public static JMenuItem createMenuItem(JMenu parent,
String text,
Action action)
configureTextAndMnemonic
public static void configureTextAndMnemonic(AbstractButton button,
String text)