Example usage for javax.swing Action SMALL_ICON

List of usage examples for javax.swing Action SMALL_ICON

Introduction

In this page you can find the example usage for javax.swing Action SMALL_ICON.

Prototype

String SMALL_ICON

To view the source code for javax.swing Action SMALL_ICON.

Click Source Link

Document

The key used for storing a small Icon, such as ImageIcon.

Usage

From source file:org.pmedv.blackboard.commands.AddDiodeCommand.java

public AddDiodeCommand() {
    putValue(Action.NAME, resources.getResourceByKey("AddDiodeCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.diode"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("AddDiodeCommand.description"));
    putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_DOWN_MASK));
    setEnabled(false);//  w  ww .jav a  2s .co  m
}

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);// ww  w .  ja  va  2 s.  c  o m
}

From source file:org.pmedv.blackboard.commands.AddTextCommand.java

public AddTextCommand() {
    putValue(Action.NAME, resources.getResourceByKey("AddTextCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.addtext"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("AddTextCommand.description"));
    putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.CTRL_DOWN_MASK));
    setEnabled(false);//from   w  ww  .j  ava 2s. co  m
}

From source file:org.pmedv.blackboard.commands.ConvertToSymbolCommand.java

public ConvertToSymbolCommand() {
    putValue(Action.NAME, resources.getResourceByKey("ConvertToSymbolCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.converttosymbol"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("ConvertToSymbolCommand.description"));
    putValue(Action.ACCELERATOR_KEY,
            KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));
    setEnabled(false);//from   w w  w.jav a2s. c o m
}

From source file:org.pmedv.blackboard.commands.CreateBoardCommand.java

public CreateBoardCommand() {
    title = "untitled";
    putValue(Action.NAME, resources.getResourceByKey("CreateBoardCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.new"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("CreateBoardCommand.description"));
    putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));
}

From source file:org.pmedv.blackboard.commands.CreatePartListCommand.java

public CreatePartListCommand() {
    putValue(Action.NAME, resources.getResourceByKey("CreatePartListCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.partlist"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("CreatePartListCommand.description"));
    putValue(Action.ACCELERATOR_KEY,
            KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK));
    setEnabled(false);//from w  ww.  j a va 2 s  .  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);/* w w  w.j  a  v a  2  s.c  o m*/
}

From source file:org.pmedv.blackboard.commands.DeletePartCommand.java

public DeletePartCommand() {
    putValue(Action.NAME, resources.getResourceByKey("DeletePartCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.delete"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("DeletePartCommand.description"));
}

From source file:org.pmedv.blackboard.commands.ExportImageCommand.java

public ExportImageCommand() {
    putValue(Action.NAME, resources.getResourceByKey("ExportImageCommand.name"));
    putValue(Action.SMALL_ICON, resources.getIcon("icon.export"));
    putValue(Action.SHORT_DESCRIPTION, resources.getResourceByKey("ExportImageCommand.description"));
    putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, InputEvent.CTRL_DOWN_MASK));
    setEnabled(false);// www  .  j ava  2  s .com
}

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 w w  w  .java 2s .co m*/
}