House Features added and logic for adding options to the owner
[RRRRHHHH_Code] / ruralHouses / src / gui / StartWindow.java
index 98b912e..54fe389 100644 (file)
@@ -87,7 +87,7 @@ public class StartWindow extends JFrame {
                        createOfferButton.setAlignmentX(Component.CENTER_ALIGNMENT);
                        createOfferButton.addActionListener(new java.awt.event.ActionListener() {
                                public void actionPerformed(java.awt.event.ActionEvent e) {
-                                       JFrame a = new IntroduceOfferGUI();
+                                       JFrame a = new LoginGUI();
                                        a.setVisible(true);
                                }
                        });
@@ -122,11 +122,11 @@ public class StartWindow extends JFrame {
                                        //JFrame a = new QueryAvailabilityWindow();
                                        ApplicationFacadeInterface facade=StartWindow.facadeInterface;
                                        try {
-                                               facade.close();
+                                               
                                                setVisible(false);
                                                System.exit(1);
                                        }
-                                       catch (RemoteException e1) {
+                                       catch (Exception e1) {
                                                // TODO Auto-generated catch block
                                                e1.printStackTrace();
                                        }                                       
@@ -160,7 +160,6 @@ public class StartWindow extends JFrame {
                        //System.out.println(e.toString());
                        e.printStackTrace();
                }
-               int x=0;
                JFrame a = new StartWindow();
                a.setVisible(true);
        }