Package com.alee.extended.layout

Examples of com.alee.extended.layout.VerticalFlowLayout


            public void actionPerformed ( final ActionEvent e )
            {
                final WebPopOver popOver = new WebPopOver ( owner );
                popOver.setCloseOnFocusLoss ( true );
                popOver.setMargin ( 10 );
                popOver.setLayout ( new VerticalFlowLayout () );
                popOver.add ( new WebLabel ( "1. This is simple detached pop-over dialog" ) );
                popOver.add ( new WebLabel ( "2. You can move pop-over by dragging it" ) );
                popOver.add ( new WebLabel ( "3. Pop-over will get closed if loses focus" ) );
                popOver.show ( owner );
            }
View Full Code Here


            public void actionPerformed ( final ActionEvent e )
            {
                final WebPopOver popOver = new WebPopOver ( owner );
                popOver.setCloseOnFocusLoss ( true );
                popOver.setMargin ( 10 );
                popOver.setLayout ( new VerticalFlowLayout () );
                popOver.add ( new WebLabel ( "1. Simple pop-over dialog attached to button" ) );
                popOver.add ( new WebLabel ( "2. You can move pop-over by dragging it" ) );
                popOver.show ( ( WebButton ) e.getSource () );
            }
        } );
View Full Code Here

            public void actionPerformed ( final ActionEvent e )
            {
                final WebPopOver popOver = new WebPopOver ( owner );
                popOver.setCloseOnFocusLoss ( true );
                popOver.setMargin ( 10 );
                popOver.setLayout ( new VerticalFlowLayout () );
                final WebImage icon = new WebImage ( WebLookAndFeel.getIcon ( 16 ) );
                final WebLabel titleLabel = new WebLabel ( "Pop-over dialog", WebLabel.CENTER );
                final WebButton closeButton = new WebButton ( loadIcon ( "cross2.png" ), new ActionListener ()
                {
                    @Override
View Full Code Here

                }
            } );
            setJMenuBar ( menuBar );

            // Options panel
            add ( new BorderPanel ( new WebPanel ( new VerticalFlowLayout ( 10, 10 ) )
            {
                {
                    setMargin ( 15 );

                    final TitledBorderPainter titledBorderPainter = new TitledBorderPainter ( "Window settings" );
View Full Code Here

            {
                final WebPopOver popOver = new WebPopOver ( owner );
                popOver.setModal ( true );
                popOver.setMargin ( 10 );
                popOver.setMovable ( false );
                popOver.setLayout ( new VerticalFlowLayout () );
                popOver.add ( new WebLabel ( "1. This pop-over is modal and blocks parent window" ) );
                popOver.add ( new WebLabel ( "2. This pop-over will not close on focus loss" ) );
                popOver.add ( new WebLabel ( "3. This pop-over is made non-movable" ) );
                popOver.add ( new SingleAlignPanel ( new WebButton ( "Close pop-over", new ActionListener ()
                {
View Full Code Here

        titleLabel.setBoldFont ();
        titleLabel.setForeground ( Color.WHITE );
        titleLabel.setHorizontalAlignment ( SwingConstants.CENTER );
        panel.add ( titleLabel, ToolbarLayout.START );

        final WebPanel innerPanel = new WebPanel ( new VerticalFlowLayout ( 15, 15 ) )
        {
            @Override
            protected void paintComponent ( final Graphics g )
            {
                super.paintComponent ( g );
View Full Code Here

        {
            final WebLabel descriptionLabel = new WebLabel ( example.getDescription (), WebLabel.TRAILING );
            descriptionLabel.setForeground ( Color.GRAY );
            SwingUtils.changeFontSize ( descriptionLabel, -1 );

            final WebPanel vertical = new WebPanel ( new VerticalFlowLayout ( VerticalFlowLayout.MIDDLE, 0, 0, true, false ) );
            vertical.setOpaque ( false );
            vertical.add ( titleLabel );
            vertical.add ( descriptionLabel );

            return vertical;
View Full Code Here

        settings.setDrawFocus ( false );
        settings.setRolloverDecoratedOnly ( true );

        final WebButtonPopup wbp = new WebButtonPopup ( settings, PopupWay.downLeft );

        final WebPanel popupContent = new WebPanel ( new VerticalFlowLayout ( 5, 5 ) );
        popupContent.setMargin ( 5 );
        popupContent.setOpaque ( false );
        wbp.setContent ( popupContent );

        theme = new WebComboBox ( EditorTheme.values () );
View Full Code Here

                return;
            }
        }
        if ( legendPanel == null )
        {
            legendPanel = new WebPanel ( new VerticalFlowLayout () );
            legendPanel.setOpaque ( false );

            legendPanel.add ( new WebLabel ( "<html><center>Every feature is marked with a colored leaf.<br>" +
                    "Each leaf color reflects feature development state.</center></html>", WebLabel.CENTER ) );
            legendPanel.add ( createLegendSeparator () );
View Full Code Here

        {
            legendPanel = legendCache.get ( featureState );
        }
        else
        {
            legendPanel = new WebPanel ( new VerticalFlowLayout () );
            legendPanel.setOpaque ( false );
            legendPanel.add ( createLegendLabel ( featureState.getDescription (), featureState.getIcon () ).setBoldFont () );
            legendPanel.add ( createLegendLabel ( featureState.getFullDescription (), null ).setMargin ( 5 ) );
            legendCache.put ( featureState, legendPanel );
        }
View Full Code Here

TOP

Related Classes of com.alee.extended.layout.VerticalFlowLayout

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.