Package com.alee.extended.panel

Examples of com.alee.extended.panel.BorderPanel


        WebToolBar ut = new WebToolBar ( WebToolBar.HORIZONTAL );
        ut.setFloatable ( false );
        setupToolBar ( ut );

        return new GroupPanel ( 0, false, new BorderPanel ( ft ), new BorderPanel ( ut ) );
    }
View Full Code Here


        aut.setFloatable ( false );
        aut.setToolbarStyle ( ToolbarStyle.attached );
        aut.setComponentOrientation ( ComponentOrientation.RIGHT_TO_LEFT );
        setupToolBar ( aut );

        return new GroupPanel ( 3, true, new BorderPanel ( ft ), new BorderPanel ( ut ), new BorderPanel ( aft ), new BorderPanel ( aut ) );
    }
View Full Code Here

        aut.setFloatable ( false );
        aut.setToolbarStyle ( ToolbarStyle.attached );
        aut.setComponentOrientation ( ComponentOrientation.RIGHT_TO_LEFT );
        setupToolBar ( aut );

        return new GroupPanel ( 3, false, new BorderPanel ( aft ), new BorderPanel ( aut ) );
    }
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

    }

    @Override
    protected void addSubComponents ()
    {
        add ( new BorderPanel ( new WebLabel ( frame.getTitle (), new Icon ()
        {
            @Override
            public void paintIcon ( final Component c, final Graphics g, final int x, final int y )
            {
                if ( frame.getFrameIcon () != null )
                {
                    frame.getFrameIcon ().paintIcon ( c, g, x, y );
                }
            }

            @Override
            public int getIconWidth ()
            {
                return frame.getFrameIcon () != null ? frame.getFrameIcon ().getIconWidth () : 16;
            }

            @Override
            public int getIconHeight ()
            {
                return frame.getFrameIcon () != null ? frame.getFrameIcon ().getIconHeight () : 16;
            }
        }, WebLabel.LEFT )
        {
            {
                setOpaque ( false );
                setForeground ( Color.WHITE );
                setFont ( WebFonts.getSystemTitleFont () );
            }
        }, isFrameTitle () ? 3 : 1, 3, 0, 3 ), BorderLayout.CENTER );

        final int buttons = ( frame.isIconifiable () ? 1 : 0 ) + ( frame.isMaximizable () ? 1 : 0 ) +
                ( frame.isClosable () ? 1 : 0 );
        final JPanel buttonsPanel = new JPanel ( new GridLayout ( 1, buttons ) );
        buttonsPanel.setOpaque ( false );
        if ( frame.isIconifiable () )
        {
            buttonsPanel.add ( iconButton );
        }
        if ( frame.isMaximizable () )
        {
            buttonsPanel.add ( maxButton );
        }
        if ( frame.isClosable () )
        {
            buttonsPanel.add ( closeButton );
        }
        add ( new BorderPanel ( buttonsPanel, 0, 0, 0, 0 ), BorderLayout.EAST );
    }
View Full Code Here

        setLayout ( new BorderLayout () );

        container = new WebPanel ( layout );
        if ( margin != null )
        {
            final BorderPanel borderPanel = new BorderPanel ( component, margin );
            borderPanel.setOpaque ( false );
            if ( constraints != null )
            {
                container.add ( borderPanel, constraints );
            }
            else
View Full Code Here

TOP

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

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.