edu.rice.comp211.laundry.ui
Class MnemonicHelper

java.lang.Object
  extended by 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

Method Summary
static void configureTextAndMnemonic(AbstractButton button, String text)
           
static JMenu createMenu(String text)
           
static JMenuItem createMenuItem(JMenu parent, String text)
           
static JMenuItem createMenuItem(JMenu parent, String text, Action action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)