projects
/
RRRRHHHH_Code
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started creating the booking interface for the owners.
[RRRRHHHH_Code]
/
ruralHouses
/
src
/
gui
/
ModifyHouseGUI.java
diff --git
a/ruralHouses/src/gui/ModifyHouseGUI.java
b/ruralHouses/src/gui/ModifyHouseGUI.java
index
393a707
..
06b679e
100644
(file)
--- a/
ruralHouses/src/gui/ModifyHouseGUI.java
+++ b/
ruralHouses/src/gui/ModifyHouseGUI.java
@@
-135,10
+135,8
@@
public class ModifyHouseGUI extends JFrame {
HouseManager hm = new HouseManager();
if (hm.registerNewHouse(newRh)) {
HouseManager hm = new HouseManager();
if (hm.registerNewHouse(newRh)) {
- owner.getRuralHouses().remove(rh);
owner.getRuralHouses().add(newRh);
houseBox.removeItem(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");
feedback.setText("House properly modified");
} else
feedback.setText("Imposible to modify the house");