You can control how
JDiagram
responds to drag-and-drop operations by handling several events. In this sample, dropping image or text data objects creates new boxes containing them.