Java Code Examples for com.alee.utils.SwingUtils#getAccelerator()

The following examples show how to use com.alee.utils.SwingUtils#getAccelerator() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebRadioButtonMenuItem.java    From weblaf with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs new radiobutton menu item using the specified settings.
 *
 * @param id          {@link StyleId}
 * @param text        menu item text
 * @param icon        menu item icon
 * @param selected    whether this checkbox item is selected or not
 * @param accelerator menu item accelerator
 */
public WebRadioButtonMenuItem ( final StyleId id, final String text, final Icon icon, final boolean selected,
                                final HotkeyData accelerator )
{
    this ( id, text, icon, selected, SwingUtils.getAccelerator ( accelerator ) );
}
 
Example 2
Source File: WebCheckBoxMenuItem.java    From weblaf with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs new checkbox menu item using the specified settings.
 *
 * @param id          {@link StyleId}
 * @param text        menu item text
 * @param icon        menu item icon
 * @param selected    whether this checkbox item is selected or not
 * @param accelerator menu item accelerator
 */
public WebCheckBoxMenuItem ( final StyleId id, final String text, final Icon icon, final boolean selected,
                             final HotkeyData accelerator )
{
    this ( id, text, icon, selected, SwingUtils.getAccelerator ( accelerator ) );
}
 
Example 3
Source File: WebMenuItem.java    From weblaf with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Constructs new menu item using the specified settings.
 *
 * @param id          {@link StyleId}
 * @param text        menu item text
 * @param icon        menu item icon
 * @param accelerator menu item accelerator
 */
public WebMenuItem ( final StyleId id, final String text, final Icon icon, final HotkeyData accelerator )
{
    this ( id, text, icon, SwingUtils.getAccelerator ( accelerator ) );
}