title: Java Swing - Drag & Drop drawString text
body: <p>I've had a look around for this problem but couldn't find an answer...</p>
  
  <p>I currently have a JPanel in which I'm painting a load of unicode characters (music notes) using the <code>Graphics2D</code> <code>g2.drawString()</code> method.</p>
  
  <p>I have an <code>ArrayList</code> of <code>KeyPress</code> objects, each of which contains one or more <code>g2.drawString()</code> calls.</p>
  
  <p>So each <code>KeyPress</code> object is a music note and is painted on the JPanel.</p>
  
  <p>How would I go about adding the functionality to enable the user to select and drag the objects?</p>