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 FilesTableModel(tableModel.getList(), tableModel.getEntityManager());
	        tableModel.addTableModelListener(this);
	        
	        // update the JTable with the data
	        admingui.updateFileTable();
	    
	        // read the data in each column using getValueAt and display it on corresponding textfield
	        admingui.setFile_projNameComboBox( (String) tableModel.getValueAt(firstIndex, 1));
			admingui.setFile_fileNameTextField( (String) tableModel.getValueAt(firstIndex, 3));
			admingui.setFile_fileFormatTextField( (String) tableModel.getValueAt(firstIndex, 2));
			admingui.setFile_fileLocationTextField( (String) tableModel.getValueAt(firstIndex, 4));
			
	} catch(Exception exp) {
		exp.getMessage();
		exp.printStackTrace();
	}
	}