1 36 37 import javax.swing.Action ; 38 39 43 public class AboutAction extends JLFAbstractAction { 44 45 private static final String ACTION_COMMAND_KEY_ABOUT = "about-command"; 46 private static final String NAME_ABOUT = "About..."; 47 private static final String SMALL_ICON_ABOUT = "About16.gif"; 48 private static final String LARGE_ICON_ABOUT = "About24.gif"; 49 private static final String SHORT_DESCRIPTION_ABOUT = "About WebPad"; 50 private static final String LONG_DESCRIPTION_ABOUT = "Just a simple demo application"; 51 private static final int MNEMONIC_KEY_ABOUT = 'A'; 52 53 56 public AboutAction() { 57 putValue(Action.NAME, NAME_ABOUT); 58 putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_ABOUT)); 59 putValue(LARGE_ICON, getIcon(LARGE_ICON_ABOUT)); 60 putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_ABOUT); 61 putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_ABOUT); 62 putValue(Action.MNEMONIC_KEY, new Integer (MNEMONIC_KEY_ABOUT)); 63 putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_ABOUT); 64 } 65 66 } 67 | Popular Tags |