MouseListener
does not have a mouseMoved
method.
You have to add the declaration that you are going to also implement the Mouse Motion Listener interface:
public class drawArea extends JPanel
implements MouseListener, MouseMotionListener
Additionally, you have to add this mouse motion listener in the constructor
this.addMouseMotionListener(this);