Deleting data base from repository
[RRRRHHHH_Code] / ruralHouses / src / gui / IntroduceOfferGUI.java
index 77d1488..57346c8 100644 (file)
@@ -6,7 +6,7 @@ import java.awt.Frame;
 import java.awt.Rectangle;
 import java.util.Vector;
 
-import businessLogic.ApplicationFacadeInterface;
+import businessLogic.*;
 import domain.Owner;
 import domain.RuralHouse;
 
@@ -15,12 +15,12 @@ import java.awt.event.ActionEvent;
 
 public class IntroduceOfferGUI extends JFrame {
 
-       private static final long serialVersionUID = 1L;
+       private static final long serialVersionUID= 1L;
        private JPanel jContentPane = null;
        private JTextField usernameField;
        private JPasswordField passwordField;
        private JTextField textField;
-       private LoginManager loginManager = new LoginManagerInterface();
+       private LoginManagerInterface loginManager = new LoginManager();
 
        public IntroduceOfferGUI() {
                super();
@@ -59,7 +59,7 @@ public class IntroduceOfferGUI extends JFrame {
                        JButton loginButton = new JButton("Login");
                        loginButton.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent arg0) {
-                                       Owner owner = loginManager.checkCredentials(usernameField.getText(),new String(passwordField.getPassword());
+                                       Owner owner = loginManager.checkCredentials(usernameField.getText(),new String(passwordField.getPassword()));
                                        if(owner==null){
                                                textField.setText("Incorrect username or password");
                                        }else{
@@ -89,4 +89,7 @@ public class IntroduceOfferGUI extends JFrame {
                }
                return jContentPane;
        }
-} // @jve:decl-index=0:visual-constraint="222,33"
+
+
+}  // @jve:decl-index=0:visual-constraint="222,33"
+