});
add = new JMenuItem("Add",ImgRep.getIcon("server_add.png"));
add.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
INewServerDialog<String, Integer> server_dialog = new SNewServerDialog(parent);
SwingUtils.setWindowLocationRelativeTo((JDialog)server_dialog,parent);
server_dialog.setVisible(true);
if(server_dialog.getDialogAction()==IDialog.DialogAction.OK) {
try {
_server_manager.newServer(server_dialog.getServerIP(),
server_dialog.getServerPort());
}catch(Throwable cause) {
cause.printStackTrace();
}
}
}