Example usage for javax.swing AbstractAction subclass-usage

List of usage examples for javax.swing AbstractAction subclass-usage

Introduction

In this page you can find the example usage for javax.swing AbstractAction subclass-usage.

Usage

From source file Main.java

class ShowAction extends AbstractAction {
    public ShowAction() {
        super("About");

        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
        putValue(Action.NAME, "Go to number ");

From source file ColorAction.java

public class ColorAction extends AbstractAction {
    public ColorAction(String name, Icon icon, Color c, Component comp) {
        putValue(Action.NAME, name);
        putValue(Action.SMALL_ICON, icon);
        putValue("Color", c);
        target = comp;

From source file Main.java

class NextFocusAction extends AbstractAction {
    public NextFocusAction() {
        super("Move Focus Forwards");
    }

    public void actionPerformed(ActionEvent evt) {

From source file com.isencia.passerelle.hmi.action.ModelDebugStepper.java

@SuppressWarnings("serial")
public class ModelDebugStepper extends AbstractAction {
    private final static Log logger = LogFactory.getLog(ModelDebugStepper.class);

    public ModelDebugStepper(final HMIBase base) {
        super(base, HMIMessages.getString(HMIMessages.MENU_DEBUG_STEP),

From source file Main.java

class ShowAction extends AbstractAction {
    public ShowAction() {
        super("About");
        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
        putValue(Action.SMALL_ICON, MetalIconFactory.getFileChooserHomeFolderIcon());
    }

From source file coolmap.application.utils.viewportActions.ZoomOutAction.java

/**
 *
 * @author sugang
 */
public class ZoomOutAction extends AbstractAction {

From source file Main.java

class ShowAction extends AbstractAction {
    public ShowAction() {
        super("About");

        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
        putValue(Action.NAME, "Go to number ");

From source file Main.java

class ShowAction extends AbstractAction {
    public ShowAction() {
        super("About");

        putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
        putValue(Action.NAME, "Go to number ");

From source file coolmap.application.utils.viewportActions.ZoomInAction.java

/**
 *
 * @author sugang
 */
public class ZoomInAction extends AbstractAction {

From source file Main.java

class ShowAction extends AbstractAction {
    public ShowAction() {
        super("About");
        PropertyChangeListener lis = new PropertyChangeListener() {
            @Override
            public void propertyChange(PropertyChangeEvent e) {