public class listOfAdditionRequestsGUI extends JFrame {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
private JPanel contentPane;
private JTable table;
private DefaultTableModel tableModel;
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);
}
}
});