Two Laptop Bag*
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
Author

how to change the cursor size for dialog

swapnel surade
Ranch Hand

Joined: Mar 05, 2009
Posts: 129
Hi,

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

thanks
swapnil surade
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10170
    
    8

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
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: how to change the cursor size for dialog
 
Similar Threads
magnifier cursor in java
magnifier cursor in java
Mouse Cursor
File Organization
How to change cursor height based on Font size