]> git.mxchange.org Git - addressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java
A lot refacturings ...
[addressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / SwingClient.java
index a8c1a72910e14f39b1de5455d4bc296a475e96a5..2829d0583fc0ae5184923154d97477a3c1cbed74 100644 (file)
@@ -43,8 +43,6 @@ public class SwingClient extends BaseClient implements Client {
         * @param application Application instance
         */
        public SwingClient (final Application application) {
-               super();
-
                // Debug message
                this.getLogger().trace("CALLED!"); //NOI18N
 
@@ -53,6 +51,9 @@ public class SwingClient extends BaseClient implements Client {
 
                // Init frame instance
                this.frame = AddressbookFrame.getSelfInstance(this);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 
        @Override
@@ -92,6 +93,9 @@ public class SwingClient extends BaseClient implements Client {
         */
        @Override
        public Contact doEnterOwnData () {
+               // Trace message
+               this.getLogger().trace("CALLED!"); //NOI18N
+
                // Deligate this call to the frame
                return this.frame.doEnterOwnData();
        }
@@ -179,8 +183,8 @@ public class SwingClient extends BaseClient implements Client {
                        // Init frame
                        this.frame.init();
                } catch (final FrameAlreadyInitializedException ex) {
-                       this.getLogger().catching(ex);
-                       System.exit(1);
+                       // Abort program
+                       this.abortProgramWithException(ex);
                }
 
                // Now start the frame
@@ -197,7 +201,7 @@ public class SwingClient extends BaseClient implements Client {
 
        @Override
        public void showCurrentMenu () {
-       // Debug message
+               // Debug message
                //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
 
                // Not implemented here