This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to change the cursor size for dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to change the cursor size for dialog" Watch "how to change the cursor size for dialog" New topic

how to change the cursor size for dialog

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129

When cursor comes on Java dialog i want to change the size of cursor.
how I can change the size of the cursor ?

swapnil surade
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10745

What do you mean "size" of the cursor?
Either you can choose from the known types (Defined in the Cursor class) or make your own by using the Toolkit class.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor

Joined: Oct 27, 2005
Posts: 20078

As far as I know you can't get the current cursor and enlarge it. You probably could if you could convert it to both an Image and a "hot spot" Point; you could then enlarge the Image, scale the Point, then call Toolkit.getDefaultToolkit().createCustomCursor with those values.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: how to change the cursor size for dialog
It's not a secret anymore!