title: Trying to create a clickable button but get thrown error when compiling
body: <p>CountingNumbers is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener</p>
  
  <p>is the error i get.</p>
  
  <p>My Code:</p>
  
  <pre><code>//Create an application that counts the number of each letter in a given word/phrase
  //have a box that has a text box a button and output box
  
  import javax.swing.*;
  
  import java.awt.*;
  
  import java.awt.event.*;
  
   public class CountingNumbers extends JFrame implements ActionListener
   {
  
     public void count()
  
  {
  
      JFrame frame = new JFrame("Counting Letters Application");
      JTextField textEntry = new JTextField("enter your word/phrase here", 1);
      JButton count = new JButton("Count Letters");
      count.addActionListener(this);
  
      frame.setPreferredSize(new Dimension(400, 300));
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
      Color teal = new Color(0, 128, 128);
      frame.getContentPane().setBackground(teal);
      frame.getContentPane().add(textEntry, BorderLayout.NORTH);
      frame.getContentPane().add(count, BorderLayout.EAST);
  
      frame.pack();
      frame.setVisible(true);
  
     }
  
     public void actionPerformed(ActionEvent e, JFrame frame) 
     {
  
         JTextField output = new JTextField("output box", 4);
         frame.getContentPane().add(output, BorderLayout.WEST);
         output.setText("button was clicked");
     }
  
  }      
  </code></pre>
  
  <p>I have no clue why this is happening, I am fairly new to java and just learned from a class at my school.</p>