X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fclient%2Fgui%2FSwingClient.java;h=8992b3a1ebb621a54afb9499d6f829e79033fe25;hb=ac52e6515a6d8e23aea65a40b1ac0d1d481d6dfe;hp=4a51c942ac06cfac31c83eccd2ca2410943b490c;hpb=e48af74ac9a6c205711d04b4cf9bd9086546e8e9;p=jfinancials-swing.git diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java index 4a51c94..8992b3a 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java +++ b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java @@ -16,6 +16,7 @@ */ package org.mxchange.addressbook.client.gui; +import org.mxchange.addressbook.FrameAlreadyInitializedException; import org.mxchange.addressbook.UnhandledUserChoiceException; import org.mxchange.addressbook.application.Application; import org.mxchange.addressbook.client.BaseClient; @@ -35,8 +36,9 @@ public class SwingClient extends BaseClient implements Client { private final ClientFrame frame; /** - * Constructor with application instance - * @param application + * Constructor with an Application instance. + * + * @param application Application instance */ public SwingClient (final Application application) { super(); @@ -45,7 +47,7 @@ public class SwingClient extends BaseClient implements Client { this.setApplication(application); // Init frame instance - this.frame = new AddressbookFrame(this); + this.frame = AddressbookFrame.getSelfInstance(this); } @Override @@ -63,6 +65,26 @@ public class SwingClient extends BaseClient implements Client { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } + @Override + public void doChangeOwnAddressData (Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public void doChangeOwnNameData (Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public void doChangeOwnOtherData (Contact contact) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Contact doEnterOwnData () { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + @Override public void doShutdown () { // Parent call @@ -116,7 +138,15 @@ public class SwingClient extends BaseClient implements Client { public void initClient () { // Init contact manager here this.initContactManager(); - + + try { + // Init frame + this.frame.initFrame(); + } catch (final FrameAlreadyInitializedException ex) { + this.getLogger().catching(ex); + System.exit(1); + } + // Now start the frame this.frame.setupFrame(this); }