Started creating the booking interface for the owners.
[RRRRHHHH_Code] / ruralHouses / src / gui / ModifyHouseGUI.java
index 393a707..06b679e 100644 (file)
@@ -135,10 +135,8 @@ public class ModifyHouseGUI extends JFrame {
                                HouseManager hm = new HouseManager();
 
                                if (hm.registerNewHouse(newRh)) {
-                                       owner.getRuralHouses().remove(rh);
                                        owner.getRuralHouses().add(newRh);
                                        houseBox.removeItem(rh);
-                                       hm.removeHouse(rh, o);
                                        feedback.setText("House properly modified");
                                } else
                                        feedback.setText("Imposible to modify the house");