All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jdesktop.swingx.JXLabelBeanInfo Maven / Gradle / Ivy

The newest version!
package org.jdesktop.swingx;

import org.jdesktop.beans.BeanInfoSupport;
import org.jdesktop.beans.editors.PainterPropertyEditor;

/**
 * BeanInfo class for JXLabel.
 * 
 * @author Jan Stola
 */
public class JXLabelBeanInfo extends BeanInfoSupport {

    public JXLabelBeanInfo() {
        super(JXLabel.class);        
    }
    
    @Override
    protected void initialize() {
        String iconName = "resources/" + JXLabel.class.getSimpleName();
        setSmallMonoIconName(iconName + "16.png");
        setMonoIconName(iconName + "32.png");
        setPreferred(true, "foregroundPainter", "backgroundPainter");
        setPreferred(true, "lineWrap", "maxLineSpan");
        setPreferred(true, "textRotation");
        setPropertyEditor(PainterPropertyEditor.class, "backgroundPainter");
        setPropertyEditor(PainterPropertyEditor.class, "foregroundPainter");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy