public void setTextFieldValues()
	{
		List<User> theUsers = users.getUsers();
		
		tasks = new AccessTasks();
		tasks.getTasks();
		theTask = null;
		
		if(tasks != null && item != null)
		{
			theTask = tasks.getTask(Integer.parseInt(item.getText()));
		}
		
		if(theTask != null)
		{
			StaticWindowMethods.populateAssignedToDropDown(cboxAssignedTo, theUsers);
			cboxAssignedTo.select(cboxAssignedTo.indexOf(theTask.getAssignedTo().getUserName()));
		
			if (StatusCode.values().length > 0)
			{
				StaticWindowMethods.populateStatusDropDown(cboxStatus);
				theTask.getStatus();
				cboxStatus.select(cboxStatus.indexOf(StatusCode.valueOf(theTask.getStatus().toString()).toString())); 
			}
			
			if (PriorityCode.values().length > 0)
			{
				StaticWindowMethods.populatePriorityDropDown(cboxPriority);
				cboxPriority.select(cboxPriority.indexOf(PriorityCode.valueOf(theTask.getPriority().toString()).toString())); 
			}
			
			lblCreatedByField.setText(theTask.getCreator().getUserName());
			lblCreatedDateField.setText(FormatDate.formatDate(theTask.getCreatedDate()));
			txtTitle.setText(theTask.getTitle());
			txtTimeEstimate.setText(""+theTask.getTimeEstimate());
			txtTimeSpent.setText(""+theTask.getTimeSpent());
			txtDescription.setText(theTask.getDescription());
			txtComments.setText(theTask.getComments());
			dueDate.setDay(theTask.getDueDate().get(Calendar.DAY_OF_MONTH));
			dueDate.setMonth(theTask.getDueDate().get(Calendar.MONTH));
			dueDate.setYear(theTask.getDueDate().get(Calendar.YEAR));
		}
	}