Package com.alee.extended.panel

Examples of com.alee.extended.panel.WebComponentPanel


    @Override
    public Component getPreview ( WebLookAndFeelDemo owner )
    {
        // Creating WebComponentPanel to place some components into it
        WebComponentPanel webComponentPanel = new WebComponentPanel ( true );
        webComponentPanel.setElementMargin ( 10 );
        webComponentPanel.setReorderingAllowed ( true );

        // Adding a panel with buttons
        WebButton b1 = new WebButton ( "Button" );
        WebButton b2 = new WebButton ( "Button" );
        WebButton b3 = new WebButton ( "Button" );
        webComponentPanel.addElement ( new GridPanel ( 10, b1, b2, b3 ) );

        // Adding a panel with label and field
        WebLabel label = new WebLabel ( "Field" );
        WebTextField field = new WebTextField ();
        field.putClientProperty ( GroupPanel.FILL_CELL, true );
        webComponentPanel.addElement ( new GroupPanel ( 10, label, field ) );

        // Adding a simple slider
        WebSlider slider = new WebSlider ( WebSlider.HORIZONTAL, 0, 100, 50 );
        webComponentPanel.addElement ( slider );

        // Adding a panel with textfields
        WebTextField f1 = new WebTextField ();
        WebTextField f2 = new WebTextField ();
        WebTextField f3 = new WebTextField ();
        webComponentPanel.addElement ( new GridPanel ( 10, f1, f2, f3 ) );

        return new GroupPanel ( webComponentPanel );
    }
View Full Code Here

TOP

Related Classes of com.alee.extended.panel.WebComponentPanel

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.