title: Method in class cannot be applied to given types - using action listeners
body: <p>I have a method that uses <code>ActionEvent</code> such as:</p>
  
  <pre><code>public void actionPerformed(ActionEvent event)
  {
      String command = event.getActionCommand();
      if (command.equals("Clear Fields")) {
          clearFields();
      }
      else if (command.equals("Add Mobile")) {
          addGadget();
      }
      else if (command.equals("Add MP3")) {
          addGadget();
      }   
  }
  </code></pre>
  
  <p>And the method I wish to execute such as:</p>
  
  <pre><code>public void addGadget(Gadget theGadget)
  {
      gadgets.add(theGadget);
  } 
  </code></pre>
  
  <p>The error is in the <code>actionPerformed</code> method with <code>addGadget();</code>. Is this something to do with the parameters? I have tried adding the parameters in as they are in the method I wish to execute, but I still get errors.</p>
  
  <p>If the command is equal to <code>"Add Mobile"</code>, I want to execute the <code>addGadget</code> method. But I am getting above error. Why is this?</p>