]> git.mxchange.org Git - jaddressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java
the contact manager instance only exists when initFrame() is called and not on object...
[jaddressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / SwingClient.java
index 3aec6e512709d1af27cbf16f244081cb3ac1c8a8..4a51c942ac06cfac31c83eccd2ca2410943b490c 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.addressbook.client.gui;\r
 \r
 import org.mxchange.addressbook.UnhandledUserChoiceException;\r
-import org.mxchange.addressbook.application.AddressbookApplication;\r
+import org.mxchange.addressbook.application.Application;\r
 import org.mxchange.addressbook.client.BaseClient;\r
 import org.mxchange.addressbook.client.Client;\r
 import org.mxchange.addressbook.contact.Contact;\r
@@ -38,7 +38,7 @@ public class SwingClient extends BaseClient implements Client {
      * Constructor with application instance\r
      * @param application \r
      */\r
-    public SwingClient (final AddressbookApplication application) {\r
+    public SwingClient (final Application application) {\r
        super();\r
 \r
        // Set application instance\r
@@ -102,7 +102,6 @@ public class SwingClient extends BaseClient implements Client {
      * @param accessKey Key to access the menu\r
      * @param text Text to show to user\r
      * @return A SelectableMenuItem\r
-     * @todo Make sure the access key is unique\r
      */\r
     @Override\r
     public SelectableMenuItem getMenuItem (final char accessKey, final String text) {\r
@@ -119,7 +118,7 @@ public class SwingClient extends BaseClient implements Client {
        this.initContactManager();\r
        \r
        // Now start the frame\r
-       this.frame.initFrame(this);\r
+       this.frame.setupFrame(this);\r
     }\r
 \r
     @Override\r