Login GUI completed
[RRRRHHHH_Code] / ruralHouses / src / gui / StartWindow.java
index b6afbf1..4c0ec76 100644 (file)
@@ -1,12 +1,16 @@
 package gui;
 
 import javax.swing.*;
+
 import java.awt.*;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
 
 import businessLogic.FacadeImplementation;
 import businessLogic.ApplicationFacadeInterface;
 
 import java.rmi.*;
+
 import configuration.Config;
 
 public class StartWindow extends JFrame {
@@ -26,7 +30,7 @@ public class StartWindow extends JFrame {
        public StartWindow() {
                super();
                initialize();
-               this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+               //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        }
        
        public static ApplicationFacadeInterface getBusinessLogic(){
@@ -120,6 +124,7 @@ public class StartWindow extends JFrame {
                                        try {
                                                facade.close();
                                                setVisible(false);
+                                               System.exit(1);
                                        }
                                        catch (RemoteException e1) {
                                                // TODO Auto-generated catch block