@Override
    public void setValueAt(Object value, int rowIndex, int columnIndex)
    {
        String val = (String) value;
        System.out.println(rowIndex + " x " + columnIndex + ": " + value);
        Person p = new Person(dm.personList.get(rowIndex).Id,
                dm.personList.get(rowIndex).FName,
                dm.personList.get(rowIndex).LName,
                dm.personList.get(rowIndex).Age);
        String str = null;
        str = PersonTableModel.this.getColumnName(columnIndex);
        if (str.equals("Id")) {
            p.setId(Integer.valueOf(val));
        } else if (str.equals("FName"))
        {
            p.setFName( val);
        } else if (str.equals("LName")) {
            p.setLName(val);
        } else if (str.equals("Age")) {
            p.setAge(Integer.valueOf(val));
        }
        dm.personList.set(rowIndex,p);
        try {
            DAL_Person dp = new DAL_Person();
            try {
                dp.update(p);
            } catch (SQLException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
        } catch (ParseException e) {
            e.printStackTrace();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }

        System.out.println(PersonTableModel.this.getValueAt(rowIndex, columnIndex));
    }