title: Can I listen for all drag & drop events in java?
body: <p>I would like to listen for all the drag and drop events on Swing. </p>
  
  <p>One way I managed to listen for drag events was by adding:</p>
  
  <pre><code>final long mask = AWTEvent.MOUSE_EVENT_MASK + AWTEvent.MOUSE_MOTION_EVENT_MASK;
  
  AWTEventListener eventListener = new AWTEventListener() {
      public void eventDispatched(final AWTEvent event) {}
  };
  Toolkit.getDefaultToolkit().addAWTEventListener(eventListener, mask);
  </code></pre>
  
  <p>but this does not get drop events, not even release events from the mouse when dropping.
  Is there a way to intercept all drag and drop events in the application, not on each component separately?  </p>