title: SetLocation for JLabel using MouseMotionListener
body: <h2>Can't get JLabel to Appear and Move</h2>
  
  <p>I'm trying to make a fishing game, and I'm trying to get JLabel fish to move using mouseMoved(MouseEvent evt). However, the image doesn't appear on the frame. What's wrong?</p>
  
  <hr>
  
  <pre><code> import java.awt.*;
   import javax.swing.*; 
   import java.awt.event.*;
   import sun.audio.*;
   import java.io.*;
   import java.util.Timer;
   import java.util.TimerTask;
   import java.awt.event.MouseEvent;
   public class playFishGame extends JPanel implements MouseMotionListener
  {
      private JFrame board;//the main board
      private JLabel fish;
      private ImageIcon fishPic;
    public static void main(String args[])
  {
      playFishGame play= new playFishGame();
  }
  
    public playFishGame()
  {
      board= new JFrame("Play Fish Game");
      board.setSize(1200,750);
      board.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      board.add(this);//adds JLabel to JFrame
      this.addMouseMotionListener(this);
      board.setVisible(true);
      ImageIcon fishPic= new ImageIcon("fishLarge4.png");
      fish=new JLabel (fishPic);
      this.add(fish);
      fish.setLocation(10,10);
  }
  
  public void mouseMoved(MouseEvent evt)
  {
      System.out.println(evt.getPoint().x + ", " + evt.getPoint().y);
      fish.setLocation(evt.getPoint().x,evt.getPoint().y);
  }
  
  public void mouseDragged(MouseEvent evt)
  {
  }
  }
  </code></pre>