public void populateAgent(int id) 
	{
		//update the combo data
		agent = agentDB.getAgent(id);
		cmbAgents.setModel(new DefaultComboBoxModel(agentDB.getAgentIds()));
		
		//select the input item
		for (int i = 0; i < cmbAgents.getItemCount(); i++) {
			int nItem = Integer.parseInt(cmbAgents.getItemAt(i).toString().substring(0,cmbAgents.getItemAt(i).toString().indexOf(" ")));
			if (nItem == id) {
				cmbAgents.setSelectedIndex(i);
				break;
			}
		}

		//set the text fields with agent details
		txtFirstName.setText(agent.getAgentFirstName());
		txtMI.setText(agent.getAgentMI());
		txtLastName.setText(agent.getAgentLastName());
		txtPhone.setText(agent.getAgentPhone());
		txtEmail.setText(agent.getAgentEmail());
		txtPosition.setText(agent.getAgentPosition());
		txtAgencyId.setText(agent.getAgencyId());
		
		//check if the deactivate button should be enabled
		if(agent.getAgentPosition().equals("Inactive"))
		{
			btnDeactivate.setEnabled(false);		
		}
		else
		{
			btnDeactivate.setEnabled(true);	
		}
	}