public JPopupMenu createNetworkContextMenu(){
  contextMenu=new JPopupMenu();
  contextMenu.add(actionManager.getNewNeuronAction());
  contextMenu.add(new AddNeuronsAction(this));
  contextMenu.add(actionManager.getNewGroupMenu());
  contextMenu.add(actionManager.getNewNetworkMenu());
  contextMenu.addSeparator();
  for (  Action action : actionManager.getClipboardActions()) {
    contextMenu.add(action);
  }
  contextMenu.addSeparator();
  contextMenu.add(actionManager.getClearSourceNeuronsAction());
  contextMenu.add(actionManager.getSetSourceNeuronsAction());
  contextMenu.addSeparator();
  contextMenu.add(actionManager.getShowNetworkPreferencesAction());
  return contextMenu;
}

public JPopupMenu createNetworkContextMenu ( ) { contextMenu = new JPopupMenu ( ) ; contextMenu . add ( actionManager . getNewNeuronAction ( ) ) ; contextMenu . add ( new AddNeuronsAction ( this ) ) ; contextMenu . add ( actionManager . getNewGroupMenu ( ) ) ; contextMenu . add ( actionManager . getNewNetworkMenu ( ) ) ; contextMenu . addSeparator ( ) ; for ( Action action : actionManager . getClipboardActions ( ) ) { contextMenu . add ( action ) ; } contextMenu . addSeparator ( ) ; contextMenu . add ( actionManager . getClearSourceNeuronsAction ( ) ) ; contextMenu . add ( actionManager . getSetSourceNeuronsAction ( ) ) ; contextMenu . addSeparator ( ) ; contextMenu . add ( actionManager . getShowNetworkPreferencesAction ( ) ) ; return contextMenu ; }
create a new context menu for this network panel .
