RuralHouse rh = houses.get(table.getSelectedRow());
//TODO when the house is not added show a warning to the user. Method below returns a boolean stating that.
hm.registerNewHouse(rh);
- houses.remove(rh);
am.removeHouseAdditionRequests(rh);
Administrator.saveInstance();
((DefaultTableModel)table.getModel()).removeRow(houses.indexOf(rh));
+ houses.remove(rh);
}
}
});