title: Java addWindowListener syntax error
body: <p>I have been searching google and this website all morning, but I don't really know what I am doing wrong. I have created a class (Wallboard) and I am trying to call it, but when compiling it keeps giving errors on the "addWindowListener".</p>
  
  <p>This is the error I get:</p>
  
  <pre><code>error: constructor Wallboard in class Wallboard cannot be applied to given types;
  addWindowListener(new Wallboard(this));
                    ^
    required: no arguments
    found: Wallboard
    reason: actual and formal argument lists differ in length
  </code></pre>
  
  <p>And this is the code:</p>
  
  <pre><code>public class Wallboard
  extends JFrame
  implements Runnable
  {
  JLabel WbText;
  Thread t = null;
  String[] textLine = new String[4];
  
  public Wallboard()
  {
  setUndecorated(true);
  setExtendedState(6);
  getContentPane().setBackground(Color.BLACK);
  getContentPane().setCursor(Toolkit.getDefaultToolkit().createCustomCursor(new BufferedImage(16, 16, 2), new Point(0, 0), null));
  
  setVisible(true);
  this.WbText = new JLabel("0123456789012345", 0);
  this.WbText.setFont(new Font("Monospaced", 1, getWidth() * 18 / 160));
  this.WbText.setHorizontalTextPosition(0);
  this.WbText.setVerticalTextPosition(0);
  add(this.WbText);
  addWindowListener(new Wallboard(this));
  
  this.t = new Thread(this);
  this.t.start();
  }
  </code></pre>
  
  <p>Could anyone help me out? What am I doing wrong?</p>
  
  <p>Many thanks for your input.</p>