Database management was changed, now it opens the database and it closes it every...
[RRRRHHHH_Code] / ruralHouses / src / gui / StartWindow.java
index 98b912e..f5e5b10 100644 (file)
@@ -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);
        }