boolean (final ComponentDragObject dragObject) { if (dragObject.getComponentCount() == 1 && (myContainer.getGridRowCount() == 0 || myContainer.getGridColumnCount() == 0)) { return true; } return super.canDrop(dragObject); }