package com.vci.client.ui.swing.components; import javax.swing.Action; import javax.swing.Icon; import javax.swing.JButton; import com.vci.client.ui.swing.VCISwingUtil; /** * *
Title:
*Description:
*Copyright: Copyright (c) 2012
*Company: VCI
* @author xchao * @time 2012-5-10 * @version 1.0 */ public class VCIJButton extends JButton { /** * */ private static final long serialVersionUID = 974733661380895621L; public VCIJButton() { this(null, null); } public VCIJButton(Icon icon) { this(null, icon); } public VCIJButton(String text) { this(text, null); } public VCIJButton(Action action) { this(null, null, action); } public VCIJButton(String text, Icon icon) { this(text, icon, null); } public VCIJButton(String text, Icon icon, Action action){ super(text, icon); if(action != null) setAction(action); customConstructor(); } private void customConstructor(){ setFont(VCISwingUtil.FONT_DEFAULT); } private Object obj = null; public Object getObj() { return obj; } public void setObj(Object obj) { this.obj = obj; } }