X-Git-Url: https://xp-dev.com/git/RRRRHHHH_Code/blobdiff_plain/9d746d02d3865e6721c38fe23a8b9fb72d498293..c51acfe72996e440259af7da10c89a33fd059e2a:/ruralHouses/src/gui/StartWindow.java diff --git a/ruralHouses/src/gui/StartWindow.java b/ruralHouses/src/gui/StartWindow.java index b6afbf1..4c0ec76 100644 --- a/ruralHouses/src/gui/StartWindow.java +++ b/ruralHouses/src/gui/StartWindow.java @@ -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