DnDTarget (Component component) { if (component instanceof JComponent) { DnDTarget target = (DnDTarget)((JComponent)component).getClientProperty(TARGET_KEY); if (target != null) { return target; } } return NULL_TARGET; }