• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is my custom cursor so large?

 
Unnar Björnsson
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a custom cursor using

setCursor(Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon("Images/Crosshair.png").getImage(), new Point(7,7), "cursor"));

and it works except the cursor is too large, it is supposed to be 15x15 but it is more like 30x30 or something. I know there is some command in the toolkit class called getBestCursorSize() that I think might fix that but Im not sure how to use it.
Can anyone help?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this Swing/AWT question to our Swing/AWT forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!