JButton loginButton = new JButton("Login");
loginButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
+
jButton_ActionPerformed(arg0);
}
});
if(owner==null){
loginFeedback.setText("Incorrect username or password");
}else{
- Vector<RuralHouse> ownerHouseList=null;
- try{
- ownerHouseList = StartWindow.getBusinessLogic().getRuralHouses(owner);
- }catch (Exception e1){
- e1.printStackTrace();
- }
- if(!ownerHouseList.isEmpty()){
+
+
+
this.setVisible(false);
- Frame a = new IntroduceOffer2GUI(ownerHouseList);
+ Frame a = new OwnerMenuGUI(owner);
a.setVisible(true);
- }
- else if(ownerHouseList.isEmpty())
- loginFeedback.setText("Login OK , but no houses in your name");
- }
+ }
}