title: Java Swing Drag and Drop with popup dialog
body: <p>I want the following behavior in a Java Swing application:</p>
  
  <ol>
  <li>User drags and drops an icon.</li>
  <li>User is prompted with a modal dialog if other icons should also be operated upon.</li>
  <li>After the user chooses YES, NO, or CANCEL (or closes the dialog), Java begins operating on (copying/moving) the icons (or on cancel/close does nothing).</li>
  </ol>
  
  <p>Within <code>TransferHandler.canImport()</code> I have visibility to the drop target but not to the icon.</p>
  
  <p>Within <code>TransferHandler.exportDone()</code> I have visibility to the icon but not to the drop target.</p>
  
  <p>Within <code>TransferHandler.importData()</code> I have visibility to both, but by then it's too late since if I'm performing a <code>TransferHandler.MOVE</code> then <code>TransferHandler.exportDone()</code> has already removed the icon.</p>
  
  <p>Is the behavior I mentioned above possible using Java Swing?  If so, what version of the JDK/JRE do I need to use and how do I implement it?</p>