How to change the cursor image in Java AWT and/or Swing?
问题 I'm making a simple graphics editor (i.e a paint program ). I am not planning on anything fancy, but I do want my program to change the mouse cursor to something like a "+" or an "O" when it enters the Paint Panel. like in Photoshop or GIMP. How would I do this? I can't find anything in AWT / Swing threads on how to change the mouse cursor. 回答1: Just in case someone wants something more "fancy" than any of the default cursors: it's possible to create a custom cursor (provided the Toolkit