private boolean isDragSource(MouseEvent event) {
    final Object source = event.getSource();
    if (source instanceof Component) {
      return SwingUtilities.windowForComponent(tabs) == SwingUtilities.windowForComponent((Component)source);
    }
    return false;
  }
private boolean isDragSource(MouseEvent event)