house code changed to name
[RRRRHHHH_Code] / ruralHouses / src / gui / BookRuralHouseGUI.java
index 8e6d7b5..7a262fc 100644 (file)
@@ -57,7 +57,7 @@ public BookRuralHouseGUI()
       e.printStackTrace();
     }
   }
-  public BookRuralHouseGUI(int houseNumber,Date firstDay,Date lastDay)
+  public BookRuralHouseGUI(String houseName,Date firstDay,Date lastDay)
   {
     try
     {
@@ -66,7 +66,7 @@ public BookRuralHouseGUI()
       
       // Put the "houseNumber", "firstDay" and "lastDay" in the graphical components of the user interface
       for (int i=0; i<ruralHouses.size();i++){
-         if (((RuralHouse)ruralHouses.get(i)).getHouseNumber()==houseNumber) {
+         if (((RuralHouse)ruralHouses.get(i)).getHouseName()==houseName) {
                  jComboBox1.setSelectedIndex(i);
                  break;
          }