private static void updateField() {
		int row = table.getSelectedRow();
		txt_ID.setText((String) table.getValueAt(row, 0));
		txt_Name.setText((String) table.getValueAt(row, 1));
		txt_Address.setText((String) table.getValueAt(row, 2));
		txt_Phone.setText((String) table.getValueAt(row, 3));
		txt_Date.setText((String) table.getValueAt(row, 4));
		txt_Type.setText((String) table.getValueAt(row, 5));
		txt_UserName.setText((String) table.getValueAt(row, 6));
		txt_PassWord.setText((String) table.getValueAt(row, 7));				
		ConnectData ds=new ConnectData();
		ds.connect();			
		String value = null;
		
		String ID = (String) table.getValueAt(row, 5);
		String newSQL="SELECT empTypeName FROM EmployeeType where empTypeID='" + ID +"'"; 

		try { 
			ResultSet rs =ds.ExcuteQuery(newSQL); 						
			if (rs != null) {
				value = (String)rs.getString("empTypeName");						
			} 
			rs.close(); ds.dispose(); 
		} catch(Exception ex){System.out.println("Error : " + ex);}


		int a=0;
		for (int i=0; i<comboBox.getItemCount(); i++){
			if(((KeyValue)comboBox.getItemAt(i)).getValue().equals(value))
			{
				a=i;
				break;
			}
		}
		comboBox.setSelectedIndex(a);
	}