private void handleAdd() {
	Integer ip = DNSDB.stringToIP(ipText.getText());
	if(ip == null){
	    JOptionPane.showMessageDialog(GUI.this, "'" + ipText.getText() + "' is not a valid IP address.");
	} else{
	    if (dnsDB.add(nameText.getText(), ip)){
		JOptionPane.showMessageDialog(GUI.this, "'" + ipText.getText() + "' is now mapped to '" + nameText.getText() + "'.");
	    } else{
		JOptionPane.showMessageDialog(GUI.this, "adding '" + ipText.getText() + "' - '" + nameText.getText() + "' failed.");
	    }
	}
    }