Incorrect cursor when outside of modal JDialog?
问题 When using the method setCursor() , to change the cursor used by a component, everything works fine for all components, including JFrame and JDialog . The problem here resides with a modal JDialog . When the mouse is inside the dialog, the cursor is displayed right. But, when the mouse is moved outside the dialog, the cursor is re-set to the OS default, even though the underlying JFrame is using the same custom cursor as the dialog. I've searched A LOT, and found some related questions, but