Examples of HorizontalFlowLayout


Examples of com.alee.extended.layout.HorizontalFlowLayout

    }

    public static void fillBreadcrumb ( final WebBreadcrumb b )
    {
        // Radio buttons panel
        final WebBreadcrumbPanel panel1 = new WebBreadcrumbPanel ( new HorizontalFlowLayout ( 4 ) );
        panel1.add ( new WebRadioButton ( "1" ) );
        panel1.add ( new WebRadioButton ( "2" ) );
        panel1.add ( new WebRadioButton ( "3" ) );
        SwingUtils.groupButtons ( panel1 );
        b.add ( panel1 );

        // Label and text field panel
        final WebBreadcrumbPanel panel2 = new WebBreadcrumbPanel ( new HorizontalFlowLayout () );
        panel2.add ( new WebLabel ( "Field:" ) );
        final WebTextField textField = new WebTextField ( 5 );
        SwingUtils.setFontSize ( textField, 8 );
        panel2.add ( textField );
        b.add ( panel2 );
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        // Image and loader lists
        final List<WebImage> images = CollectionUtils.copy ( createImage ( "1.png" ), createImage ( "2.png" ), createImage ( "3.png" ) );
        final List<WebLabel> loaders = CollectionUtils.copy ( createLoader (), createLoader (), createLoader () );

        // Images panel
        final WebPanel imagesPanel = new WebPanel ( new HorizontalFlowLayout ( 5, false ) );
        imagesPanel.addAncestorListener ( new AncestorAdapter ()
        {
            @Override
            public void ancestorAdded ( AncestorEvent event )
            {
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        // Images list
        final List<ImageIcon> images =
                CollectionUtils.copy ( loadIcon ( "images/1.png" ), loadIcon ( "images/2.png" ), loadIcon ( "images/3.png" ) );

        // Images panel
        final WebPanel imagesPanel = new WebPanel ( new HorizontalFlowLayout ( 5, false ) );

        // States switch buttons
        final WebButton slideLeft = new WebButton ( loadIcon ( "left.png" ) );
        slideLeft.addActionListener ( new ActionListener ()
        {
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

    @Override
    public Component getPreview ( WebLookAndFeelDemo owner )
    {
        // Buttons panel
        WebPanel buttons = new WebPanel ( new HorizontalFlowLayout ( 5, false ) );

        // Filling pane with buttons
        for ( int i = 1; i <= 10; i++ )
        {
            WebToggleButton nb = new WebToggleButton ( loadIcon ( "buttons/" + i + ".png" ) );
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

public class IconProgress extends WebPanel
{
    public IconProgress ()
    {
        super ( true, new HorizontalFlowLayout ( 2, false ) );
        setOpaque ( false );
        setMargin ( 2 );
        setWebColoredBackground ( false );
        setBackground ( Color.WHITE );
    }
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        contentPanel = new WebPanel ();
        contentPanel.setOpaque ( false );
        centerPanel = new AlignPanel ( contentPanel, SwingConstants.CENTER, SwingConstants.CENTER );
        updateContent ();

        optionsPanel = new WebPanel ( new HorizontalFlowLayout ( 4, false ) );
        optionsPanel.setOpaque ( false );
        southPanel = new AlignPanel ( optionsPanel, SwingConstants.RIGHT, SwingConstants.CENTER );
        updateOptions ();

        addMouseListener ( new MouseAdapter ()
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        updateContentLayout ();
    }

    private void updateContentLayout ()
    {
        contentPanel.setLayout ( new HorizontalFlowLayout ( 0, !multiSelectionEnabled ) );
    }
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        container.add ( controls, BorderLayout.SOUTH );

        // Buttons
        centerer = new WebPanel ();
        controls.add ( centerer, BorderLayout.CENTER );
        buttons = new WebPanel ( new HorizontalFlowLayout ( 5, false ) );

        // Special content
        setSpecialComponent ( special );

        // Yes
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        contentPanel = new WebPanel ();
        contentPanel.setOpaque ( false );
        centerPanel = new AlignPanel ( contentPanel, SwingConstants.CENTER, SwingConstants.CENTER );
        updateContent ();

        optionsPanel = new WebPanel ( new HorizontalFlowLayout ( 4, false ) );
        optionsPanel.setOpaque ( false );
        southPanel = new AlignPanel ( optionsPanel, SwingConstants.RIGHT, SwingConstants.CENTER );
        updateOptions ();

        addMouseListener ( new MouseAdapter ()
View Full Code Here

Examples of com.alee.extended.layout.HorizontalFlowLayout

        if ( this.orientation != orientation )
        {
            this.orientation = orientation;

            // Updating layout
            setLayout ( orientation == HORIZONTAL ? new HorizontalFlowLayout ( 0, false ) :
                    new VerticalFlowLayout ( VerticalFlowLayout.TOP, 0, 0, true, false ) );

            // Updating buttons styling
            updateButtonsStyling ();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.