no warnings
[RRRRHHHH_Code] / ruralHouses / src / gui / AddOffersGUI.java
index 12d501b..8d34025 100644 (file)
@@ -24,7 +24,6 @@ import businessLogic.OfferManager;
 
 import com.toedter.calendar.JCalendar;
 
-import domain.Offer;
 import domain.RuralHouse;
 import exceptions.BadDates;
 import exceptions.OverlappingOfferExists;
@@ -35,7 +34,7 @@ public class AddOffersGUI extends JFrame  {
 private static final long serialVersionUID = 1L;
 
        
-  private JComboBox jComboBox1;
+  private JComboBox<RuralHouse> jComboBox1;
   private JLabel jLabel1 = new JLabel();
   private JLabel jLabel2 = new JLabel();
   private JTextField jTextField1 = new JTextField();
@@ -74,7 +73,7 @@ private static final long serialVersionUID = 1L;
     this.setTitle("Set availability");
     
     
-    jComboBox1 = new JComboBox(v);
+    jComboBox1 = new JComboBox<RuralHouse>(v);
     jComboBox1.setBounds(new Rectangle(115, 30, 115, 20));
     jLabel1.setText("List of houses:");
     jLabel1.setBounds(new Rectangle(25, 30, 95, 20));