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

com.alee.laf.checkbox.CheckBoxPainter Maven / Gradle / Ivy

Go to download

WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications

There is a newer version: 2.2.1
Show newest version
package com.alee.laf.checkbox;

import com.alee.painter.decoration.DecorationState;
import com.alee.painter.decoration.IDecoration;

import javax.swing.*;
import java.util.List;

/**
 * @author Alexandr Zernov
 */

public class CheckBoxPainter>
        extends AbstractStateButtonPainter implements ICheckBoxPainter
{
    @Override
    protected List getDecorationStates ()
    {
        final List states = super.getDecorationStates ();
        if ( component.isSelected () )
        {
            states.add ( DecorationState.checked );
        }
        return states;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy