Package org.dyno.visual.swing.borders.action

Source Code of org.dyno.visual.swing.borders.action.BevelBorderSwitchAction

/************************************************************************************
* Copyright (c) 2008 William Chen.                                                 *
*                                                                                  *
* All rights reserved. This program and the accompanying materials are made        *
* available under the terms of the Eclipse Public License v1.0 which accompanies   *
* this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html *
*                                                                                  *
* Use is subject to the terms of Eclipse Public License v1.0.                      *
*                                                                                  *
* Contributors:                                                                    *
*     William Chen - initial API and implementation.                               *
************************************************************************************/

package org.dyno.visual.swing.borders.action;

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.border.BevelBorder;

import org.dyno.visual.swing.base.IFactory;

/**
*
* BevelBorderSwitchAction
*
* @version 1.0.0, 2008-7-3
* @author William Chen
*/
public class BevelBorderSwitchAction extends BorderSwitchAction {
  public BevelBorderSwitchAction(JComponent w) {
    super(w, BevelBorder.class, new IFactory(){
     
      public Object newInstance(Object bean) {
        return BorderFactory.createBevelBorder(BevelBorder.LOWERED);
      }});
  }
}

TOP

Related Classes of org.dyno.visual.swing.borders.action.BevelBorderSwitchAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.