void (DragSourceDropEvent event) { Component component = event.getDragSourceContext().getComponent(); if (!event.getDropSuccess() && component instanceof PaletteComponentList && getRootPane() == ((JComponent)component).getRootPane()) { clearActiveItem(); } }