Creates a new DropTarget given the
Component
to associate itself with, an
int
representing
the default acceptable action(s) to
support, a
DropTargetListener
to handle event processing, a
boolean
indicating
if the
DropTarget
is currently accepting drops, and
a
FlavorMap
to use (or null for the default
FlavorMap
).
Creates a new DropTarget given the
Component
to associate itself with, an
int
representing
the default acceptable action(s) to
support, a
DropTargetListener
to handle event processing, a
boolean
indicating
if the
DropTarget
is currently accepting drops, and
a
FlavorMap
to use (or null for the default
FlavorMap
).
The Component will receive drops only if it is enabled.
Parameters:
- c - The Component
with which this DropTarget
is associated
- ops - The default acceptable actions for this DropTarget
- dtl - The DropTargetListener
for this DropTarget
- act - Is the DropTarget
accepting drops.
- fm - The FlavorMap
to use, or null for the default FlavorMap
Throws:
- HeadlessException - if GraphicsEnvironment.isHeadless()
returns true
See Also:
GraphicsEnvironment.isHeadless()
,