public CopyAction(final NetworkPanel networkPanel){
  super(networkPanel,"Copy",EnablingCondition.ALLITEMS);
  Toolkit toolkit=Toolkit.getDefaultToolkit();
  KeyStroke keyStroke=KeyStroke.getKeyStroke(KeyEvent.VK_C,toolkit.getMenuShortcutKeyMask());
  putValue(ACCELERATOR_KEY,keyStroke);
  putValue(SMALL_ICON,ResourceManager.getImageIcon("Copy.png"));
  putValue(SHORT_DESCRIPTION,"Copy selected neurons, (connected) synapses, and neuron groups");
}

public CopyAction ( final NetworkPanel networkPanel ) { super ( networkPanel , "Copy" , EnablingCondition . ALLITEMS ) ; Toolkit toolkit = Toolkit . getDefaultToolkit ( ) ; KeyStroke keyStroke = KeyStroke . getKeyStroke ( KeyEvent . VK_C , toolkit . getMenuShortcutKeyMask ( ) ) ; putValue ( ACCELERATOR_KEY , keyStroke ) ; putValue ( SMALL_ICON , ResourceManager . getImageIcon ( "Copy.png" ) ) ; putValue ( SHORT_DESCRIPTION , "Copy selected neurons, (connected) synapses, and neuron groups" ) ; }
create a new copy action with the specified network panel .
