List of usage examples for javax.swing Action NAME
String NAME
To view the source code for javax.swing Action NAME.
Click Source Link
String
name for the action, used for a menu or button. From source file:org.pmedv.blackboard.commands.RotateCWCommand.java
public RotateCWCommand() { putValue(Action.NAME, resources.getResourceByKey("RotateCWCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.rotatecw")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("RotateCWCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, 0)); setEnabled(false);// www . ja va 2s . c o m }
From source file:org.pmedv.blackboard.commands.DeleteCommand.java
public DeleteCommand() { putValue(Action.NAME, resources.getResourceByKey("DeleteCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.delete")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("DeleteCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0)); setEnabled(false);/* ww w. j a v a 2 s . c o m*/ }
From source file:org.pmedv.blackboard.commands.MoveToLayerCommand.java
public MoveToLayerCommand() { putValue(Action.NAME, resources.getResourceByKey("MoveToLayerCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.movetolayer")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("MoveToLayerCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_L, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); setEnabled(false);//from ww w. j av a 2s.c om }
From source file:ro.nextreports.designer.action.report.ViewReportSqlAction.java
public ViewReportSqlAction() { putValue(Action.NAME, I18NSupport.getString("view.sql")); putValue(Action.SMALL_ICON, ImageUtil.getImageIcon("report_view")); putValue(Action.SHORT_DESCRIPTION, I18NSupport.getString("view.sql")); putValue(Action.LONG_DESCRIPTION, I18NSupport.getString("view.sql")); }
From source file:com.sshtools.sshterm.FullScreenAction.java
public FullScreenAction(SshToolsApplication application, SshToolsApplicationContainer container) { this.application = application; this.container = container; putValue(Action.NAME, NAME_FULL_SCREEN); putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_FULL_SCREEN)); putValue(LARGE_ICON, getIcon(LARGE_ICON_FULL_SCREEN)); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.ALT_MASK)); putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_FULL_SCREEN); putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_FULL_SCREEN); putValue(Action.MNEMONIC_KEY, new Integer(MNEMONIC_KEY_FULL_SCREEN)); putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_FULL_SCREEN); putValue(StandardAction.ON_MENUBAR, new Boolean(true)); putValue(StandardAction.MENU_NAME, "View"); putValue(StandardAction.MENU_ITEM_GROUP, new Integer(20)); putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(20)); putValue(StandardAction.ON_TOOLBAR, new Boolean(true)); putValue(StandardAction.TOOLBAR_GROUP, new Integer(5)); putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(30)); }
From source file:pl.otros.logview.gui.actions.TailMultipleFilesIntoOneView.java
public TailMultipleFilesIntoOneView(OtrosApplication otrosApplication) { super(otrosApplication); putValue(Action.NAME, "Tail multiple log files into one view"); putValue(Action.SHORT_DESCRIPTION, "Tail multiple log files into one view with log format autodetection"); putValue(Action.SMALL_ICON, Icons.ARROW_JOIN); }
From source file:com.sshtools.powervnc.VncFullScreenAction.java
public VncFullScreenAction(SshToolsApplication application, SshToolsApplicationContainer container) { this.application = application; this.container = container; putValue(Action.NAME, NAME_FULL_SCREEN); putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_FULL_SCREEN)); putValue(LARGE_ICON, getIcon(LARGE_ICON_FULL_SCREEN)); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.ALT_MASK)); putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_FULL_SCREEN); putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_FULL_SCREEN); putValue(Action.MNEMONIC_KEY, new Integer(MNEMONIC_KEY_FULL_SCREEN)); putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_FULL_SCREEN); putValue(StandardAction.ON_MENUBAR, new Boolean(true)); putValue(StandardAction.MENU_NAME, "View"); putValue(StandardAction.MENU_ITEM_GROUP, new Integer(20)); putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(20)); putValue(StandardAction.ON_TOOLBAR, new Boolean(true)); putValue(StandardAction.TOOLBAR_GROUP, new Integer(5)); putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(30)); }
From source file:Main.java
protected void makeActionsPretty() { Action a;//from ww w. ja v a 2s .c om a = textComp.getActionMap().get(DefaultEditorKit.cutAction); a.putValue(Action.SMALL_ICON, new ImageIcon("cut.gif")); a.putValue(Action.NAME, "Cut"); a = textComp.getActionMap().get(DefaultEditorKit.copyAction); a.putValue(Action.SMALL_ICON, new ImageIcon("copy.gif")); a.putValue(Action.NAME, "Copy"); a = textComp.getActionMap().get(DefaultEditorKit.pasteAction); a.putValue(Action.SMALL_ICON, new ImageIcon("paste.gif")); a.putValue(Action.NAME, "Paste"); a = textComp.getActionMap().get(DefaultEditorKit.selectAllAction); a.putValue(Action.NAME, "Select All"); }
From source file:org.pmedv.blackboard.commands.AddResistorCommand.java
public AddResistorCommand() { putValue(Action.NAME, resources.getResourceByKey("AddResistorCommand.name")); putValue(Action.SMALL_ICON, resources.getIcon("icon.resistor")); putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("AddResistorCommand.description")); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.CTRL_DOWN_MASK)); setEnabled(false);//w w w.j ava2s. com }
From source file:pl.otros.logview.gui.actions.MarkAllFoundAction.java
public MarkAllFoundAction(OtrosApplication otrosApplication) { super(otrosApplication); this.putValue(Action.NAME, "Mark all found"); this.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_A); this.putValue(SMALL_ICON, Icons.AUTOMATIC_MARKERS); }