title: Java swing mousemove firing only once
body: <p>essentially I want to run a method whenever the user goes from not moving their mouse at all, to moving it. I have no clue how to go about this.</p>
  <h1>custom listener:</h1>
  <pre><code>import java.awt.event.MouseEvent;
  import java.awt.event.MouseListener;
  import java.awt.event.MouseMotionListener;
  
  public class CustomMouseListener implements MouseMotionListener, MouseListener{
  
      //whatever other methods I have (irrelevant for the question)
  
      public void mouseMoved(MouseEvent e){
          //code goes here
          //but right now it fires every time the mouse is moved, which
          //is way too much, I only need one per move
      }
  
  }
  </code></pre>