Package com.alee.managers.popup

Examples of com.alee.managers.popup.WebButtonPopup$WebButtonPopupPainter


    {
        // Button that calls for popup
        WebButton showPopup = new WebButton ( getButtonIcon ( way ) );

        // Popup itself
        WebButtonPopup popup = new WebButtonPopup ( showPopup, way );

        // 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
        popup.setDefaultFocusComponent ( field );

        return showPopup;
    }
View Full Code Here


    {
        final WebButton settings = new WebButton ( new ImageIcon ( SourceViewer.class.getResource ( "icons/settings.png" ) ) );
        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 () );
        theme.registerSettings ( SETTINGS_PREFIX + "theme", 0 );
        theme.setRenderer ( new WebComboBoxCellRenderer ()
        {
View Full Code Here

TOP

Related Classes of com.alee.managers.popup.WebButtonPopup$WebButtonPopupPainter

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.