001 /* 002 * CheckerboardPainterBeanInfo.java 003 * 004 * Created on March 21, 2006, 12:10 PM 005 * 006 * To change this template, choose Tools | Template Manager 007 * and open the template in the editor. 008 */ 009 010 package org.jdesktop.swingx.painter; 011 012 import org.jdesktop.swingx.BeanInfoSupport; 013 import org.jdesktop.swingx.editors.PaintPropertyEditor; 014 015 /** 016 * 017 * @author Richard 018 */ 019 public class CheckerboardPainterBeanInfo extends BeanInfoSupport { 020 021 /** Creates a new instance of CheckerboardPainterBeanInfo */ 022 public CheckerboardPainterBeanInfo() { 023 super(CheckerboardPainter.class); 024 } 025 026 protected void initialize() { 027 setPreferred(true, "darkPaint", "lightPaint", "squareLength"); 028 setCategory("Appearance", "darkPaint", "lightPaint", "squareLength"); 029 setPropertyEditor(PaintPropertyEditor.class, "darkPaint", "lightPaint"); 030 } 031 }