deleted aplicationFacade and imported it's functions to specific business logics.
[RRRRHHHH_Code] / ruralHouses / src / gui / SetAvailabilityGUI.java
index 92e44d9..b4d8ee1 100644 (file)
@@ -11,7 +11,8 @@ import java.util.Vector;
 
 import javax.swing.JButton;
 
 
 import javax.swing.JButton;
 
-import businessLogic.ApplicationFacadeInterface;
+import businessLogic.OwnerManager;
+import businessLogic.OwnerManagerInterface;
 import domain.Owner;
 import domain.RuralHouse;
 import javax.swing.JLabel;
 import domain.Owner;
 import domain.RuralHouse;
 import javax.swing.JLabel;
@@ -73,12 +74,11 @@ public class SetAvailabilityGUI extends JFrame {
                
                if (jComboBox == null) {
                        try {
                
                if (jComboBox == null) {
                        try {
-                       ApplicationFacadeInterface facade=StartWindow.getBusinessLogic();
-                               Vector<Owner> owners=facade.getOwners();
+                       OwnerManagerInterface ownerM = new OwnerManager();
+                               Vector<Owner> owners=ownerM.getOwners();
                        jComboBox = new JComboBox(owners);
                        jComboBox.setBounds(new Rectangle(136, 39, 175, 44));
                        } catch (Exception e) {
                        jComboBox = new JComboBox(owners);
                        jComboBox.setBounds(new Rectangle(136, 39, 175, 44));
                        } catch (Exception e) {
-                               // TODO Auto-generated catch block
                                e.printStackTrace();
                        }
                        
                                e.printStackTrace();
                        }