private void updateClient()
    {
    	try
    	{
    		if(Long.parseLong(txtPhoneNo.getText()) != _client.getPhoneNo())
    		{
    			if(_cliCtrl.getClientByPhone(Long.parseLong(txtPhoneNo.getText())) != null)
    			{
    				throw new Exception();
    			}
    		}
    	}
    	catch (Exception e)
    	{
            JOptionPane.showMessageDialog(null, Logging.handleException(e, 10), "Telefonnummeret eksisterer for en anden klient!", JOptionPane.ERROR_MESSAGE);
    	}
    	try
    	{    		
    		String name = txtName.getText();
    		String address = txtAddress.getText();
    		City city = _cliCtrl.getCityByZipCode(Integer.parseInt(txtZipCode.getText()));
    		long phoneNo = Long.parseLong(txtPhoneNo.getText());
    		String eMail = txtEmail.getText();
            Calendar cal = Calendar.getInstance();
            Date creationDate = _client.getCreationDate();
            Date editedDate =  cal.getTime();
    		Client client = new Client(name, address, city, phoneNo, eMail, creationDate, editedDate);
    		
    		_cliCtrl.updateClient(client);
    		JOptionPane.showMessageDialog(null, "Kunden er nu opdateret", "INFORMATION!", JOptionPane.INFORMATION_MESSAGE);
    		_instance = null;
    		_frame.dispose();
    	}
    	catch (Exception ex)
        {
            JOptionPane.showMessageDialog(null, Logging.handleException(ex, 2), "Fejl", JOptionPane.WARNING_MESSAGE);
        }
		
    }