public void tableChanged(TableModelEvent e) {
			Object o = e.getSource();
			if (o instanceof TableModel && table.getRowSelectionAllowed()) {
				int row = e.getFirstRow();
				int column = e.getColumn(); // tells which student we are
											// modifying
				if (row == -1 || column == -1)
					return;
				TableModel model = (TableModel) e.getSource();
				String columnName = model.getColumnName(column);
				Object data = model.getValueAt(row, column);
				Elev elev_vechi = selected_clasa.getElevi().get(row);
				Elev elev = selected_clasa.getElevi().get(row);
				switch (columnName) {
				case "Nume":
					System.out.println("NUME MODIFICA");
					elev.setNume(data.toString());
					break;
				case "Prenume":
					elev.setPrenume(data.toString());
					break;
				case "CNP":
					elev.setCNP(data.toString());
					break;
				case "Data Nasterii":
					try {
						elev.setDate(data.toString());
					} catch (Exception ex) {
						ex.printStackTrace();
					}
					break;
				}
				secretar.modifyElevFromClasa(selected_clasa, elev_vechi, elev);
			}
		}