import java.awt.Rectangle;
import java.util.Vector;
- import businessLogic.ApplicationFacadeInterface;
+ import businessLogic.*;
import domain.Owner;
import domain.RuralHouse;
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();
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{
}
return jContentPane;
}
- } // @jve:decl-index=0:visual-constraint="222,33"
+
+
+ } // @jve:decl-index=0:visual-constraint="222,33"
+