code: @Override
      public void mouseDragDetected(final MouseEvent mouseEvent) {
  
          final ToggleButton b = (ToggleButton) mouseEvent.getSource();
  
          final Dragboard db = b.startDragAndDrop(TransferMode.MOVE);
  
          // Put a TabBB on a dragboard
          final ClipboardContent content = new ClipboardContent();
          content.put(CustomDataFormat.DOCKABLE, b.getUserData());
          db.setContent(content);
  
          mouseEvent.consume();
      }
docs: {@inheritDoc}