• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Mouse Pointer

 
Ajit Kumar
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
Does anyone know how to change the mousepointer in java.
from normal pointer to busy(processing) and back to normal.

thanks
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gee this looks just like another post in Beginner.
setCursor(Cursor.getPredefinedCursor(
Cursor.WAIT_CURSOR));
setCursor(Cursor.getDefaultCursor());
setCursor() is defined on Component.
 
sreedhar vanam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cindy,
Can you please expand on this?.
Let me tell about my requirement..
I have application developing on Swing,so i want use specific or different pointer during execution,sothat user can understand that something is going on in the background.
Sp,.please help me regarding this,if possible provide me with sample coding...
Thanks,
sreedhar
Originally posted by Cindy Glass:
Gee this looks just like another post in Beginner.
setCursor(Cursor.getPredefinedCursor(
Cursor.WAIT_CURSOR));
setCursor(Cursor.getDefaultCursor());
setCursor() is defined on Component.

 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create your own cursors also. Use:
Toolkit.createCustomCursor(Image img, Point hotspot, String name)
---------
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!