public void tableChanged(TableModelEvent e) {
		try {
			// get the index of the inserted row
			// tableModel.getRowSet().moveToCurrentRow();
			int firstIndex = e.getFirstRow();

			// create a new table model with the new data
			tableModel = new ProjectTableModel(tableModel.getList(),
					tableModel.getEntityManager());
			tableModel.addTableModelListener(this);

			// update the JTable with the data
			admingui.updateTable();

			// read the data in each column using getValueAt and display it on
			// corresponding textfield
			admingui.setProjNameTextField((String) tableModel.getValueAt(firstIndex,
					1));
			admingui.setCategoryTextField((String) tableModel.getValueAt(firstIndex,
					6));
			admingui.setStatusComboBox((String) tableModel.getValueAt(firstIndex, 5));
			admingui.setOutcomeTextField((String) tableModel.getValueAt(firstIndex,
					7));
			admingui.setScopeTextField((String) tableModel.getValueAt(firstIndex, 4));
			admingui.setFromDateTextField((String) tableModel.getValueAt(firstIndex,
					2));
			admingui.setToDateTextField((String) tableModel
					.getValueAt(firstIndex, 3));
			admingui.updateFileComboBox();
			admingui.updatePeopleComboBox();

		} catch (Exception exp) {
			exp.getMessage();
			exp.printStackTrace();
		}
	}