Package com.alee.extended.button

Examples of com.alee.extended.button.WebSwitch


    @Override
    public Component getPreview ( WebLookAndFeelDemo owner )
    {
        // Simple switch
        final WebSwitch ws1 = new WebSwitch ();

        // Customized switch
        final WebSwitch ws2 = new WebSwitch ();
        ws2.setRound ( 11 );
        ws2.setLeftComponent ( createSwitchIcon ( loadIcon ( "switch/on.png" ), 4, 0 ) );
        ws2.setRightComponent ( createSwitchIcon ( loadIcon ( "switch/off.png" ), 0, 4 ) );

        return new GroupPanel ( 4, ws1, ws2 );
    }
View Full Code Here

TOP

Related Classes of com.alee.extended.button.WebSwitch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.