private void setUpDragDrop() {

		acceptableFlavors = new DataFlavor[] { DataTreeDragNDropHandler.localDomainFileFlavor,
			ToolButtonTransferable.localToolButtonFlavor,
			VersionInfoTransferable.localVersionInfoFlavor };

		// set up drop stuff
		dropTargetAdapter =
			new ToolButtonDropTgtAdapter(DnDConstants.ACTION_COPY_OR_MOVE, acceptableFlavors);
		dropTarget =
			new DropTarget(this, DnDConstants.ACTION_COPY_OR_MOVE, dropTargetAdapter, true);
		dropTarget.setActive(true);

		// set up drag stuff
		dragSource = DragSource.getDefaultDragSource();
		dragGestureAdapter = new DragGestureAdapter(this);
		dragSourceAdapter = new DragSrcAdapter(this);
		dragSource.createDefaultDragGestureRecognizer(this, dragAction, dragGestureAdapter);
	}
Fix the button state after dragging/dropping, since this is broken in Java
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ToolButton.java