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

How to change mouse cursor during drag and drop?  RSS feed

 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to drag a JLabel with image from a JFrame to another JWindow.
During drag and drop operation, how to change the mouse cursor?


Thanks
Benson
 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this,

Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)
 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your suggestion. Could you tell me how to change the predefined cursor?


Benson
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!