@Override
	public void doAction (String o)
	{
		Global.notewindow(this, "editp");
		if (Global.resourceString("Set").equals(o))
		{
			C.Name = Name.getText();
			C.Server = Server.getText();
			C.State = State.getSelectedIndex();
			try
			{
				C.Port = Integer.parseInt(Port.getText());
			}
			catch (NumberFormatException ex)
			{
				C.Port = 6970;
			}
			finally
			{
				G.updateplist();
				setVisible(false);
				dispose();
			}
		}
		else if (Global.resourceString("Add").equals(o))
		{
			Partner C = new Partner("[?] [?] [?]");
			C.Name = Name.getText();
			C.Server = Server.getText();
			C.State = State.getSelectedIndex();
			try
			{
				C.Port = Integer.parseInt(Port.getText());
			}
			catch (NumberFormatException ex)
			{
				C.Port = 6969;
			}
			finally
			{
				if (G.pfind(C.Name) != null)
				{
					C.Name = C.Name + " DUP";
				}
				PList.append(new ListElement(C));
				G.updateplist();
				setVisible(false);
				dispose();
			}
		}
		else if (Global.resourceString("Cancel").equals(o))
		{
			setVisible(false);
			dispose();
		}
		else if (Global.resourceString("Help").equals(o))
		{
			new HelpDialog(F, "confpartner");
		}
		else super.doAction(o);
	}