private void createContextMenu(){
  contextMenu=new JPopupMenu();
  contextMenu.add(actionManager.getNewNetworkAction());
  JMenu newGaugeSubMenu=new JMenu("New Plot");
  for (  Action action : actionManager.getPlotActions()) {
    newGaugeSubMenu.add(action);
  }
  contextMenu.add(newGaugeSubMenu);
  JMenu newWorldSubMenu=new JMenu("New World");
  for (  Action action : actionManager.getNewWorldActions()) {
    newWorldSubMenu.add(action);
  }
  contextMenu.add(newWorldSubMenu);
  contextMenu.addSeparator();
  contextMenu.add(actionManager.getNewDocViewerAction());
  contextMenu.add(actionManager.getNewConsoleAction());
}

private void createContextMenu ( ) { contextMenu = new JPopupMenu ( ) ; contextMenu . add ( actionManager . getNewNetworkAction ( ) ) ; JMenu newGaugeSubMenu = new JMenu ( "New Plot" ) ; for ( Action action : actionManager . getPlotActions ( ) ) { newGaugeSubMenu . add ( action ) ; } contextMenu . add ( newGaugeSubMenu ) ; JMenu newWorldSubMenu = new JMenu ( "New World" ) ; for ( Action action : actionManager . getNewWorldActions ( ) ) { newWorldSubMenu . add ( action ) ; } contextMenu . add ( newWorldSubMenu ) ; contextMenu . addSeparator ( ) ; contextMenu . add ( actionManager . getNewDocViewerAction ( ) ) ; contextMenu . add ( actionManager . getNewConsoleAction ( ) ) ; }
create a new context menu for this network panel .
