PRedColorButton.java :  » JPA » vars-redux » vars » annotation » ui » buttons » Java Open Source

Java Open Source » JPA » vars redux 
vars redux » vars » annotation » ui » buttons » PRedColorButton.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vars.annotation.ui.buttons;

import javax.swing.ImageIcon;


import vars.annotation.ui.actions.AddPropertyAction;
import vars.annotation.ui.ToolBelt;

/**
 *
 * @author brian
 */
public class PRedColorButton extends PropButton {

    public PRedColorButton() {
        super();
        setAction(new AddRedSurfaceColorPropAction(getToolBelt()));
        setToolTipText("red surface color");
        setIcon(new ImageIcon(getClass().getResource("/images/vars/annotation/redbutton.png")));
        setEnabled(false);
    }
    
    class AddRedSurfaceColorPropAction extends AddPropertyAction {

        public AddRedSurfaceColorPropAction(ToolBelt toolBelt) {
            super(toolBelt, "surface-color", "self", "red");
        }

    }
    
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.