Package com.alee.extended.label

Examples of com.alee.extended.label.WebHotkeyLabel


    @Override
    public Component getPreview ( final WebLookAndFeelDemo owner )
    {
        // Text-based hotkeys
        final GroupPanel panel1 = new GroupPanel ( 4, new WebHotkeyLabel ( "Shift" ), new WebHotkeyLabel ( "Escape" ),
                new WebHotkeyLabel ( "Shift+Escape" ) );

        // Disabled KeyEvent-based hotkeys
        final GroupPanel panel2 = new GroupPanel ( 4, new WebHotkeyLabel ( KeyEvent.VK_SPACE ),
                new WebHotkeyLabel ( KeyEvent.VK_SPACE, KeyEvent.CTRL_MASK ) );

        // HotkeyData-based hotkeys
        final GroupPanel panel3 = new GroupPanel ( 4, new WebHotkeyLabel ( Hotkey.ALT ), new WebHotkeyLabel ( Hotkey.F4 ),
                new WebHotkeyLabel ( Hotkey.ALT_F4 ) );

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

TOP

Related Classes of com.alee.extended.label.WebHotkeyLabel

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.