List of usage examples for javax.swing JMenuBar JMenuBar
public JMenuBar()
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_1.CFAstSwing.CFAstSwingTldListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;/*from w w w. j ava 2 s.co m*/ ICFLibAnyObj container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddTld = new ActionAddTld(); if (container instanceof ICFAstTenantObj) { menuItem = new JMenuItem(actionAddTld); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionTld(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionTld(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionTld(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingTldListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;/*from w ww .j a v a 2 s. co m*/ ICFLibAnyObj2 container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddTld = new ActionAddTld(); if (container instanceof ICFAccTenantObj) { menuItem = new JMenuItem(actionAddTld); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionTld(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionTld(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionTld(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstSwing.CFAstSwingTldListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;//ww w .j a v a 2 s .c om ICFLibAnyObj2 container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddTld = new ActionAddTld(); if (container instanceof ICFAstTenantObj) { menuItem = new JMenuItem(actionAddTld); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionTld(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionTld(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionTld(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:org.ash.gui.MainFrame.java
/** * Creates the menu bar.//from w ww . ja va 2 s . c om * * @return the j menu bar */ private JMenuBar createMenuBar() { JMenu menuFile = new JMenu(); menuFile.setMnemonic(Options.getInstance().getResource("file.mnemonic").charAt(0)); menuFile.setText(Options.getInstance().getResource("file.text")); menuFileExit.setMnemonic(Options.getInstance().getResource("exit.mnemonic").charAt(0)); menuFileExit.setText(Options.getInstance().getResource("exit.text")); menuFileExit.addActionListener(new MainFrame_menuFileExit_ActionAdapter(this)); menuFile.add(menuFileExit); JMenu menuHelp = new JMenu(); menuHelp.setMnemonic(Options.getInstance().getResource("help.mnemonic").charAt(0)); menuHelp.setText(Options.getInstance().getResource("help.text")); menuHelpAbout.setMnemonic(Options.getInstance().getResource("about.mnemonic").charAt(0)); menuHelpAbout.setText(Options.getInstance().getResource("about.text")); menuHelpAbout.addActionListener(new MainFrame_menuHelpAbout_ActionAdapter(this)); menuHelp.add(menuHelpAbout); JMenuBar bar = new JMenuBar(); bar.add(menuFile); bar.add(menuHelp); return bar; }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingSecGroupListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;//from w ww . j a v a 2 s . c om ICFLibAnyObj container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddSecGroup = new ActionAddSecGroup(); if (container instanceof ICFSecurityClusterObj) { menuItem = new JMenuItem(actionAddSecGroup); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionSecGroup(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionSecGroup(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionSecGroup(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingClusterListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;//from w ww . j a v a 2 s .c o m ICFLibAnyObj2 container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddCluster = new ActionAddCluster(); if (container instanceof ICFLibAnyObj2) { menuItem = new JMenuItem(actionAddCluster); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionCluster(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionCluster(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionCluster(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingTSecGroupListJPanel.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"); actionAddTSecGroup = new ActionAddTSecGroup(); if (container instanceof ICFSecurityTenantObj) { menuItem = new JMenuItem(actionAddTSecGroup); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionTSecGroup(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionTSecGroup(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionTSecGroup(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccSwing.CFAccSwingSecUserListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;// www. j a va 2 s .co m ICFLibAnyObj2 container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddSecUser = new ActionAddSecUser(); if (container instanceof ICFLibAnyObj2) { menuItem = new JMenuItem(actionAddSecUser); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionSecUser(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionSecUser(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionSecUser(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingSecFormListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;// w w w. j av a 2 s . co m ICFLibAnyObj container = getSwingContainer(); panelMenuBar = new JMenuBar(); menuAdd = new JMenu("Add"); actionAddSecForm = new ActionAddSecForm(); if (container instanceof ICFSecuritySecAppObj) { menuItem = new JMenuItem(actionAddSecForm); menuAdd.add(menuItem); } if (getSwingContainer() != null) { panelMenuBar.add(menuAdd); } menuSelected = new JMenu("Selected"); menuSelected.setEnabled(false); actionViewSelected = new ViewSelectedActionSecForm(); menuItem = new JMenuItem(actionViewSelected); menuSelected.add(menuItem); actionEditSelected = new EditSelectedActionSecForm(); menuItem = new JMenuItem(actionEditSelected); menuSelected.add(menuItem); actionDeleteSelected = new DeleteSelectedActionSecForm(); menuItem = new JMenuItem(actionDeleteSelected); menuSelected.add(menuItem); panelMenuBar.add(menuSelected); } return (panelMenuBar); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswSwing.CFFswSwingISOCountryCurrencyListJPanel.java
public JMenuBar getPanelMenuBar() { if (panelMenuBar == null) { JMenuItem menuItem;/*from w ww . ja v a2 s. co m*/ ICFLibAnyObj 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); }