Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setCursor doesn't  RSS feed

Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm doing a DnD DropTargetListener that changes the cursor to drop allowed or not allowed as the mouse moves over a tree. I call setCursor but don't see the change until I release the mouse.
This seems to be a known bug (feature?) since Java was a pup. I found a few older tips on the web that suggest setting the cursor on the glass pane, but these would keep my listener from getting mouse events. Are there any fresh ideas for solving this in JDK 1.4?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!