Im sure this problem has happen and people have asked for a solution. I am kinda new to JME yet Im some what comprehensive to JAVA. The problem with my code is that the Picture or ImageIcon is dragging along duplicates across the game window. I tired to put a wait a little while to detach and attach yet the if statement were confusing.
1st I call on Picture
Picture icon;
than I initialize a method programming the Picture.
Every time you call icon() you create a new picture and put it in the scene. Why are you doing that instead of just creating the icon once and moving it?
Are you getting confused about how a scene graph works versus a drawing API like Graphics2D?
Note that JME also has custom cursor support. I didn’t want to mention it earlier because I thought it would be illuminating for you to figure out your current approach.