Search in sources :

Example 1 with CCheckBoxMenuItem

use of org.compiere.swing.CCheckBoxMenuItem in project adempiere by adempiere.

the class AppsAction method getMenuItem.

//	getButton
/**
	 *	Return MenuItem
	 *  @return MenuItem
	 */
public JMenuItem getMenuItem() {
    if (m_menu == null) {
        if (m_toggle) {
            m_menu = new CCheckBoxMenuItem(this);
            m_menu.setSelectedIcon(m_smallPressed);
        } else
            m_menu = new CMenuItem(this);
        m_menu.setAccelerator(m_accelerator);
        m_menu.setActionCommand(m_action);
    }
    return m_menu;
}
Also used : CCheckBoxMenuItem(org.compiere.swing.CCheckBoxMenuItem) CMenuItem(org.compiere.swing.CMenuItem)

Aggregations

CCheckBoxMenuItem (org.compiere.swing.CCheckBoxMenuItem)1 CMenuItem (org.compiere.swing.CMenuItem)1