* @author Roland Haeder\r
*/\r
public class SwingClient extends BaseClient implements Client {\r
+ /**\r
+ * Swing frame instance\r
+ */\r
+ private final ClientFrame frame;\r
+\r
/**\r
* Constructor with application instance\r
* @param application \r
// Set application instance\r
this.setApplication(application);\r
\r
- // Init contact manager here\r
- this.initContactManager(this);\r
-\r
- // Fill menu map\r
- this.fillMenuMap();\r
+ // Init frame instance\r
+ this.frame = new AddressbookFrame(this);\r
}\r
\r
@Override\r
return null;\r
}\r
\r
+ /**\r
+ * Inizializes this client\r
+ */\r
+ @Override\r
+ public void initClient () {\r
+ // Init contact manager here\r
+ this.initContactManager();\r
+ \r
+ // Now start the frame\r
+ this.frame.initFrame(this);\r
+ }\r
+\r
@Override\r
public void outputMessage (final String message) {\r
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
@Override\r
protected final void fillMenuMap () {\r
// Nothing to fill here as the Swing frame is handling this all\r
+ throw new UnsupportedOperationException("Not implemented.");\r
}\r
- \r
}\r