title: Java Game Mouse Movement
body: <p>I'm making a game in which we have to use 'Catchers' to catch balls which fall from the top of the window. Catches can only move left/right.</p>
  
  <p>Example: <a href="http://puu.sh/xeq8" rel="nofollow">http://puu.sh/xeq8</a></p>
  
  <p>Which direction should I look/head into if I want to make it so that I can move a 'catcher' with a mouse?</p>
  
  <p>Right now, I have a catcher that uses the keyboard - I used <code>KeyListener</code> however I am uncertain for the mouse.</p>
  
  <p>Ideally, I'd like the catcher to move left/right when the mouse moves in the JPanel? Or something of that sort would be ideal. </p>