Package com.alee.extended.button

Examples of com.alee.extended.button.WebSplitButton


     */
    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Simple split button
        final WebSplitButton splitButton = new WebSplitButton ( "Click me", WebLookAndFeel.getIcon ( 16 ) );

        // Menu for split button
        final WebPopupMenu popupMenu = new WebPopupMenu ();
        popupMenu.add ( new WebMenuItem ( "Menu item 1", WebLookAndFeel.getIcon ( 16 ), Hotkey.ALT_X ) );
        popupMenu.add ( new WebMenuItem ( "Menu item 2", Hotkey.D ) );
        popupMenu.addSeparator ();
        popupMenu.add ( new WebMenuItem ( "Menu item 3", Hotkey.ESCAPE ) );
        splitButton.setPopupMenu ( popupMenu );

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

TOP

Related Classes of com.alee.extended.button.WebSplitButton

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.