package com.github.noxan.aves.demo.chat;

import java.io.IOException;

import com.github.noxan.aves.client.Client;
import com.github.noxan.aves.client.ClientAdapter;
import com.github.noxan.aves.client.SocketClient;

public class ChatClient extends ClientAdapter {
    private SocketClient client;
    private ChatClientGUI gui;

    public static void main(String[] args) {
        new ChatClient();
    }

    public ChatClient() {
        client = new SocketClient(this);
        gui = new ChatClientGUI(this);
        try {
            client.connect();
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
}

@@ -499,32 +499,67 @@
 lientGUI(this);%0A
+    %7D%0A%0A    public void connect() %7B%0A
         try %7B%0A  

move connect to own method in chatclient