The DragSource Object

There are two ways to obtain a DragSource object. One option is to use one instance per JVM where the class method DragSource.getDefaultDragSource() will obtain a shared DragSource object that is used for the lifetime of the JVM. Another option is to provide one DragSource per instance of the Component class. If you choose this option, however, you accept responsibility for implementation.

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.