title: How to implement a mouseListener
body: <p>I know that at the beginning of a class you can write <code>implements ActionListener</code> and then you must create <code>public void actionPerformed(ActionEvent e)</code> for it to be workable. Is it possible to do the same thing with the mouseListener? if so, what method do you have to create in place of <code>actionPerformed</code>?</p>
  
  <p>Edit: this is my class declaration: </p>
  
  <pre><code>public class Basic_Book extends JFrame implements ActionListener implements MouseListener
  </code></pre>
  
  <p>And this is my error message that shows up next to it: </p>
  
  <ul>
  <li><p>The serializable class Basic_Book does not declare a static final serialVersionUID field of type 
   long</p></li>
  <li><p>Syntax error on token "implements", . expected</p></li>
  </ul>