projects
/
RRRRHHHH_Code
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deleted aplicationFacade and imported it's functions to specific business logics.
[RRRRHHHH_Code]
/
ruralHouses
/
src
/
gui
/
SetAvailabilityGUI.java
diff --git
a/ruralHouses/src/gui/SetAvailabilityGUI.java
b/ruralHouses/src/gui/SetAvailabilityGUI.java
index
92e44d9
..
b4d8ee1
100644
(file)
--- a/
ruralHouses/src/gui/SetAvailabilityGUI.java
+++ b/
ruralHouses/src/gui/SetAvailabilityGUI.java
@@
-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();
}