mgarin / weblaf

WebLaF is a fully open-source Look & Feel and component library written in pure Java for cross-platform desktop Swing applications.
http://weblookandfeel.com
GNU General Public License v3.0
1.14k stars 235 forks source link

It's not possible to always disable JCheckBox animation by default #99

Closed jordeu closed 10 years ago

jordeu commented 10 years ago

Due to this lines in WebCheckBoxUI:

protected boolean isAnimatedByDefault ()
    {
        // Workaround for Jide tristate checkbox
        return !ReflectUtils.containsInClassOrSuperclassName ( checkBox.getClass (), "com.jidesoft.swing.TristateCheckBox" );
    }

the constant

WebCheckBoxStyle.animated = false;

is always ignored.

mgarin commented 10 years ago

Thanks for reporting! I have merged your pull, that fix will be included in v1.27 release.