@Override public void urlMenuItemClicked(ActionEvent e,String url){
  String cmd=e.getActionCommand();
  if (cmd.equals("open")) {
    UrlOpener.openUrlPrompt(MainGui.this,url);
  }
 else   if (cmd.equals("copy")) {
    MiscUtil.copyToClipboard(url);
  }
 else   if (cmd.equals("join")) {
    client.commandJoinChannel(url);
  }
}

@ Override public void urlMenuItemClicked ( ActionEvent e , String url ) { String cmd = e . getActionCommand ( ) ; if ( cmd . equals ( "open" ) ) { UrlOpener . openUrlPrompt ( MainGui . this , url ) ; } else if ( cmd . equals ( "copy" ) ) { MiscUtil . copyToClipboard ( url ) ; } else if ( cmd . equals ( "join" ) ) { client . commandJoinChannel ( url ) ; } }
event of an url context menu .
