Java drag and drop custom cursor
问题 I have defined a custom canvas style component, using JPanel, that will support the dragging of objects onto the canvas. What I can't seem to figure out is how to change the drag and drop (DnD) cursor to a custom one, using a TransferHandler. For example, instead of the default link cursor during DnD, I want substitute my own. Is there a way to do this using a TransferHandler? I suspect I will have to use the AWT DnD support to do this but I am hoping to avoid that if I can. 回答1: By digging