Hello, I've got a school project to write a program.
I ve got a given ClientListener class with constructor:
Java Code:
    public ClientListener(Client client) {
        this.client = client;
    }
In client class I have:
Java Code:
     

public class Client extends JFrame implements JHelp {

     public Client(String[] args) {
        JFrame frame = new JFrame("JHelp Client");
        frame.setLayout(new BorderLayout());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(640, 480);
        frame.setMinimumSize(new Dimension(640, 480));

        //Listener 
        ClientListener c = new ClientListener(client);

static public void main(String[] args) {

      Client client = new Client(args);
        if (client.connect(args) == JHelp.OK) {
            client.run();
            client.disconnect();
        }
    }
How can I properly add Clent Listener? I cant understand what parameter should I write:
Java Code:
 ClientListener cl = new ClientListener(?? HERE ?? );
Can somebody help?