Package com.alee.extended.panel

Examples of com.alee.extended.panel.GroupPanel


        tree2.setSelectionMode ( WebTree.DISCONTIGUOUS_TREE_SELECTION );
        tree2.setSelectionStyle ( TreeSelectionStyle.group );
        final WebScrollPane treeScroll2 = new WebScrollPane ( tree2 );
        treeScroll2.setPreferredSize ( new Dimension ( 200, 150 ) );

        return new GroupPanel ( treeScroll1, treeScroll2 );
    }
View Full Code Here


        // Simple indetrminate progress bar without text
        WebProgressBar progressBar4 = new WebProgressBar ();
        progressBar4.setIndeterminate ( true );
        progressBar4.setStringPainted ( false );

        GroupPanel view = new GroupPanel ( 4, false, progressBar1, progressBar2, progressBar3, progressBar4 );

        // Progress updater
        ComponentUpdater
                .install ( view, "HorizontalProgressBarsExample.progressUpdater", StyleConstants.animationDelay, new ActionListener ()
                {
View Full Code Here

                    public void actionPerformed ( final ActionEvent e )
                    {
                        popOver.dispose ();
                    }
                } ).setUndecorated ( true );
                popOver.add ( new GroupPanel ( GroupingType.fillMiddle, 4, icon, titleLabel, closeButton ).setMargin ( 0, 0, 10, 0 ) );
                popOver.add ( new WebLabel ( "1. This is a custom 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.add ( new WebLabel ( "4. Custom title added using standard components" ) );
                popOver.show ( owner );
            }
        } );
        return new GroupPanel ( showDialog );
    }
View Full Code Here

        // You can easily remove tooltip delay for certain component
        WebLabel tip = new WebLabel ( "Tooltip with a zero delay", loadIcon ( "web.png" ) );
        TooltipManager.setTooltip ( tip, "Instant custom tooltip", TooltipWay.trailing, 0 );
        tip.setMargin ( 4 );

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

                // Restoring dialog decoration option
                WebLookAndFeel.setDecorateDialogs ( decorateFrames );
            }
        } );
        return new GroupPanel ( showFrame );
    }
View Full Code Here

                pane.closeAll ();
                addDocuments ( pane );
            }
        } );

        final GroupPanel titlePanel = new GroupPanel ( GroupingType.fillFirst, 5, title, add, clear, restore );
        return new GroupPanel ( GroupingType.fillLast, 10, false, titlePanel, pane ).setMargin ( 10 );
    }
View Full Code Here

        TableLayout gridLayout = new TableLayout ( new double[][]{ { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED },
                { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } } );
        WebPanel gridPanel = new WebPanel ( gridLayout );

        // Popup buttons
        gridPanel.add ( new GroupPanel ( createPopupButton ( PopupWay.upLeft ), createPopupButton ( PopupWay.upCenter ),
                createPopupButton ( PopupWay.upRight ) ), "1,0" );
        gridPanel.add ( new GroupPanel ( false, createPopupButton ( PopupWay.leftUp ), createPopupButton ( PopupWay.leftCenter ),
                createPopupButton ( PopupWay.leftDown ) ), "0,1" );
        gridPanel.add ( new GroupPanel ( false, createPopupButton ( PopupWay.rightUp ), createPopupButton ( PopupWay.rightCenter ),
                createPopupButton ( PopupWay.rightDown ) ), "2,1" );
        gridPanel.add ( new GroupPanel ( createPopupButton ( PopupWay.downLeft ), createPopupButton ( PopupWay.downCenter ),
                createPopupButton ( PopupWay.downRight ) ), "1,2" );

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

        // Sample popup content
        WebLabel label = new WebLabel ( "Sample label", WebLabel.CENTER );
        WebTextField field = new WebTextField ( "Sample field", 10 );
        field.setHorizontalAlignment ( SwingConstants.CENTER );
        GroupPanel content = new GroupPanel ( 5, false, label, field );
        content.setMargin ( 15 );

        // Setup popup content
        popup.setContent ( content );

        // Component focused by default
View Full Code Here

        bp6.setWidth ( 5 );
        bp6.setRound ( 12 );
        bp6.setStroke ( new ZigzagStroke ( 2f, 2f ) );
        l6.setPainter ( new WebLabelPainter ( bp6 ) ).setMargin ( 5 );

        return new GroupPanel ( 4, false, new GroupPanel ( 4, l1, l2 ), new GroupPanel ( 4, l3, l4 ), new GroupPanel ( 4, l5, l6 ) );
    }
View Full Code Here

                // Restoring frame decoration option
                WebLookAndFeel.setDecorateFrames ( decorateFrames );
            }
        } );
        return new GroupPanel ( showFrame );
    }
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.