• Post Reply Bookmark Topic Watch Topic
  • New Topic

mouse curser  RSS feed

 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting mouse curser in Jframe

i have to change mouse curser to mouse pointer .
how can i change it
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what the setCursor(Cursor) method does.
[ May 03, 2008: Message edited by: Ulf Dittmer ]
 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give me the sample code

for changing mouse cursor
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would the code show? You construct a Cursor object and pass it to the setCursor method. That's it.
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And for creating the cursor you use one of the constants in the Cursor class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!