Example usage for javax.swing JMenuBar JMenuBar

List of usage examples for javax.swing JMenuBar JMenuBar

Introduction

In this page you can find the example usage for javax.swing JMenuBar JMenuBar.

Prototype

public JMenuBar() 

Source Link

Document

Creates a new menu bar.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingSecDeviceListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;//from  www .  j av  a 2 s . c  o  m
        ICFLibAnyObj container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddSecDevice = new ActionAddSecDevice();
        if (container instanceof ICFSecuritySecUserObj) {
            menuItem = new JMenuItem(actionAddSecDevice);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionSecDevice();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionSecDevice();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionSecDevice();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstSwing.CFAstSwingISOCountryCurrencyListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;//from  ww w. ja  v a  2 s.co m
        ICFLibAnyObj container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryCurrency = new ActionAddISOCountryCurrency();
        if (container instanceof ICFAstISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryCurrency);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstSwing.CFAstSwingISOCountryLanguageListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;/*from  w  ww.  j av a 2 s .  c  o m*/
        ICFLibAnyObj container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryLanguage = new ActionAddISOCountryLanguage();
        if (container instanceof ICFAstISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryLanguage);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingISOCountryCurrencyListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;/*from w  w w . j  a  v  a  2  s.  c  o  m*/
        ICFLibAnyObj2 container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryCurrency = new ActionAddISOCountryCurrency();
        if (container instanceof ICFAccISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryCurrency);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingISOCountryLanguageListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;/*from   ww  w .  jav  a  2 s. c o  m*/
        ICFLibAnyObj2 container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryLanguage = new ActionAddISOCountryLanguage();
        if (container instanceof ICFAccISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryLanguage);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstSwing.CFAstSwingISOCountryCurrencyListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;/*from  ww w  . ja va 2s  .co  m*/
        ICFLibAnyObj2 container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryCurrency = new ActionAddISOCountryCurrency();
        if (container instanceof ICFAstISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryCurrency);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstSwing.CFAstSwingISOCountryLanguageListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;//  w  w w  .j a v  a2  s.  co  m
        ICFLibAnyObj2 container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryLanguage = new ActionAddISOCountryLanguage();
        if (container instanceof ICFAstISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryLanguage);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryLanguage();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswSwing.CFFswSwingISOCountryCurrencyListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;//from ww  w  .  ja  va  2s  . c  o  m
        ICFLibAnyObj2 container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddISOCountryCurrency = new ActionAddISOCountryCurrency();
        if (container instanceof ICFFswISOCountryObj) {
            menuItem = new JMenuItem(actionAddISOCountryCurrency);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionISOCountryCurrency();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmSwing.CFCrmSwingSecGroupMemberListJPanel.java

public JMenuBar getPanelMenuBar() {
    if (panelMenuBar == null) {
        JMenuItem menuItem;// w  ww.j a v a2s .  c  o m
        ICFLibAnyObj container = getSwingContainer();
        panelMenuBar = new JMenuBar();
        menuAdd = new JMenu("Add");
        actionAddSecGroupMember = new ActionAddSecGroupMember();
        if (container instanceof ICFCrmSecGroupObj) {
            menuItem = new JMenuItem(actionAddSecGroupMember);
            menuAdd.add(menuItem);
        }
        if (getSwingContainer() != null) {
            panelMenuBar.add(menuAdd);
        }
        menuSelected = new JMenu("Selected");
        menuSelected.setEnabled(false);
        actionViewSelected = new ViewSelectedActionSecGroupMember();
        menuItem = new JMenuItem(actionViewSelected);
        menuSelected.add(menuItem);
        actionEditSelected = new EditSelectedActionSecGroupMember();
        menuItem = new JMenuItem(actionEditSelected);
        menuSelected.add(menuItem);
        actionDeleteSelected = new DeleteSelectedActionSecGroupMember();
        menuItem = new JMenuItem(actionDeleteSelected);
        menuSelected.add(menuItem);
        panelMenuBar.add(menuSelected);
    }
    return (panelMenuBar);
}