Package com.alee.extended.panel

Examples of com.alee.extended.panel.GroupPanel


        final WebTextField componentField = new WebTextField ( "Styled text field with leading component" );
        componentField.setLeadingComponent ( new WebImage ( loadIcon ( "search.png" ) ) );
        componentField.setFieldMargin ( 0, 6, 0, 0 );
        componentField.setPainter ( npfbp );

        return new GroupPanel ( false, textField, passwordField, componentField );
    }
View Full Code Here


            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showMessageDialog ( owner, "Sample message goes here", "Message", WebOptionPane.INFORMATION_MESSAGE );
            }
        } );
        return new GroupPanel ( message );
    }
View Full Code Here

            {
                WebOptionPane.showConfirmDialog ( owner, "Save some virtual settings?", "Confirm", JOptionPane.YES_NO_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE );
            }
        } );
        return new GroupPanel ( message );
    }
View Full Code Here

     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        type = new WebComboBox ( DynamicMenuType.values (), DynamicMenuType.shutter );
        final GroupPanel tg = new GroupPanel ( 5, new WebLabel ( "Display animation:" ), type );

        hidingType = new WebComboBox ( DynamicMenuType.values (), DynamicMenuType.star );
        final GroupPanel htg = new GroupPanel ( 5, new WebLabel ( "Hide animation:" ), hidingType );

        radius = new WebTextField ( new IntTextDocument (), "70", 4 );
        final GroupPanel rg = new GroupPanel ( 5, new WebLabel ( "Menu radius:" ), radius );

        itemsAmount = new WebTextField ( new IntTextDocument (), "5", 4 );
        final GroupPanel iag = new GroupPanel ( 5, new WebLabel ( "Items amount:" ), itemsAmount );

        drawBorder = new WebCheckBox ( "Show custom border", true );

        final WebPanel clickPanel = new WebPanel ( true );
        clickPanel.setWebColoredBackground ( false );
        clickPanel.setShadeWidth ( 20 );
        clickPanel.setBackground ( Color.WHITE );
        clickPanel.add ( new WebLabel ( "Click with left mouse button here to show menu", WebLabel.CENTER ) );
        clickPanel.addMouseListener ( new MouseAdapter ()
        {
            @Override
            public void mousePressed ( final MouseEvent e )
            {
                if ( SwingUtils.isLeftMouseButton ( e ) )
                {
                    createMenu ().showMenu ( e.getComponent (), e.getPoint () );
                }
            }
        } );

        final GroupPanel controls = new GroupPanel ( 15, tg, htg, rg, iag, drawBorder );
        final AlignPanel alignPanel = new AlignPanel ( controls, SwingConstants.CENTER, SwingConstants.CENTER );
        return new GroupPanel ( GroupingType.fillLast, 10, false, alignPanel, clickPanel ).setMargin ( 10 );
    }
View Full Code Here

            public void actionPerformed ( ActionEvent e )
            {
                WebOptionPane.showMessageDialog ( owner, "Sample error goes here", "Error", WebOptionPane.ERROR_MESSAGE );
            }
        } );
        return new GroupPanel ( message );
    }
View Full Code Here

            {
                WebOptionPane.showConfirmDialog ( owner, "Did You see this dialog before?", "Confirm", WebOptionPane.YES_NO_OPTION,
                        WebOptionPane.QUESTION_MESSAGE );
            }
        } );
        return new GroupPanel ( message );
    }
View Full Code Here

        panel3.add ( new WebComboBox ( new String[]{ "ComboBox" } ), BorderLayout.CENTER );

        // Equalizing panel widths
        SwingUtils.equalizeComponentsWidths ( panel1, panel2, panel3 );

        return new GroupPanel ( 4, panel1, panel2, panel3 );
    }
View Full Code Here

            {
                WebOptionPane.showInputDialog ( owner, "Write something here:", "Input", JOptionPane.QUESTION_MESSAGE, null, null,
                        "Some default text" );
            }
        } );
        return new GroupPanel ( message );
    }
View Full Code Here

    }

    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        return new GroupPanel ( createFirstPanel (), createSecondPanel () );
    }
View Full Code Here

        WebLabel simpleLabel = new WebLabel ( "Simple label" );

        // Iconed label
        WebLabel iconedLabel = new WebLabel ( "Iconed label", loadIcon ( "icon.png" ) );

        return new GroupPanel ( 4, false, simpleLabel, iconedLabel );
    }
View Full Code Here

TOP

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

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.