/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }
/** * Constructor. * * @param text The text (name) associated with the action. * @param icon The icon associated with the action. * @param desc The description of the action. * @param mnemonic The mnemonic for the action. * @param accelerator The accelerator key for the action. */ public RecordableTextAction(String text, Icon icon, String desc, Integer mnemonic, KeyStroke accelerator) { super(text); putValue(SMALL_ICON, icon); putValue(SHORT_DESCRIPTION, desc); putValue(ACCELERATOR_KEY, accelerator); putValue(MNEMONIC_KEY, mnemonic); setRecordable(true); }