Package javax.swing

Examples of javax.swing.JMenu.addSeparator()


    fbedit.setCtrlAccelerator(exportcfg, 'E');
    exportcfg.setActionCommand("config_read");
    exportcfg.addActionListener(action);
    exportcfg.setEnabled(false);
    ret.add(exportcfg);
    ret.addSeparator();
    mi = new JMenuItem(FBEdit.getMessage("menu.config_save"), 112);
    fbedit.setCtrlAccelerator(mi, 'S');
    mi.setActionCommand("save");
    mi.addActionListener(action);
    ret.add(mi);
View Full Code Here


    importcfg = new JMenuItem(FBEdit.getMessage("menu.config_write"), 119);
    importcfg.setActionCommand("config_write");
    importcfg.addActionListener(action);
    importcfg.setEnabled(false);
    ret.add(importcfg);
    ret.addSeparator();
    reconnect = new JMenuItem(FBEdit.getMessage("menu.reconnect"));
    reconnect.setActionCommand("reconnect");
    reconnect.addActionListener(action);
    reconnect.setEnabled(false);
    ret.add(reconnect);
View Full Code Here

    reconnect = new JMenuItem(FBEdit.getMessage("menu.reconnect"));
    reconnect.setActionCommand("reconnect");
    reconnect.addActionListener(action);
    reconnect.setEnabled(false);
    ret.add(reconnect);
    ret.addSeparator();
    mi = new JMenuItem(FBEdit.getMessage("menu.exit"), 66);
    mi.setActionCommand("exit");
    mi.addActionListener(action);
    ret.add(mi);
    return ret;
View Full Code Here

    fbedit.setCtrlAccelerator(redo, 'Y');
    redo.setActionCommand("restore");
    redo.addActionListener(action);
    redo.setEnabled(false);
    ret.add(redo);
    ret.addSeparator();
    cut = new JMenuItem(FBEdit.getMessage("menu.cut"), 117);
    fbedit.setCtrlAccelerator(cut, 'X');
    cut.setActionCommand("cut");
    cut.addActionListener(action);
    cut.setEnabled(false);
View Full Code Here

//    fbedit.setCtrlAccelerator(delete, 'L');
    delete.setActionCommand("delete");
    delete.addActionListener(action);
    delete.setEnabled(false);
    ret.add(delete);
    ret.addSeparator();
    JMenuItem mi = new JMenuItem(FBEdit.getMessage("menu.search"), 83);
    fbedit.setCtrlAccelerator(mi, 'F');
    mi.setActionCommand("search");
    mi.addActionListener(action);
    ret.add(mi);
View Full Code Here

        JMenu menu = new JMenu("File");
        mb.add(menu);
       
        menu.add(connectAction);
        menu.add(disconnectAction);
        menu.addSeparator();
        menu.add(clearAction);
        menu.add(showDetailsAction);
        menu.addSeparator();
        menu.add(new ExitAction());
        setJMenuBar(mb);
View Full Code Here

        menu.add(connectAction);
        menu.add(disconnectAction);
        menu.addSeparator();
        menu.add(clearAction);
        menu.add(showDetailsAction);
        menu.addSeparator();
        menu.add(new ExitAction());
        setJMenuBar(mb);
       
        disconnectAction.setEnabled(false);
        subscriptionTable.setEnabled(false);
View Full Code Here

    private void initMenuBar() {
        JMenuBar mb = new JMenuBar();
        JMenu fileMenu = new JMenu("File");
        fileMenu.add(new ConnectAction());
        fileMenu.add(recentConnectionMenu);
        fileMenu.addSeparator();
        fileMenu.add(new ExitAction());
        mb.add(fileMenu);
        setJMenuBar(mb);
    }
   
View Full Code Here

    // create File Menu and add components to it...
    JMenu fileMenu = new JMenu("File");
    fileMenu.add(newRuleMI);
    fileMenu.add(newRulePackageMI);
    fileMenu.addSeparator();
    fileMenu.add(loadMI);
    fileMenu.add(saveMI);
    fileMenu.addSeparator();
    fileMenu.add(endMI);
View Full Code Here

    fileMenu.add(newRuleMI);
    fileMenu.add(newRulePackageMI);
    fileMenu.addSeparator();
    fileMenu.add(loadMI);
    fileMenu.add(saveMI);
    fileMenu.addSeparator();
    fileMenu.add(endMI);

    return fileMenu;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.