About cursors, urgent!

Hi programmers!

I'm trying to change the default cursor to crosshair cursor in W2000. When I do it I get the text cursor. My code is the following:

setCursor(Cursor.getPredefinedCursor (Cursor.CROSSHAIR_CURSOR));

Fdo. Luismahou

P.D.:Sorry for my English, I'm Spanish

[313 byte] By [luismahou] at [2007-9-26 4:36:29]
# 1
it works fine with me, try this :setCursor(new Cursor (Cursor.CROSSHAIR_CURSOR));
noah.w at 2007-6-29 17:54:31 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank you very much!My cursor is still text cursor, but I've proved the same code in other machine, and it works. I don't know why my computer do it wrong, but now I know that the program is right.Fdo. Luismahou
luismahou at 2007-6-29 17:54:31 > top of Java-index,Desktop,Core GUI APIs...
# 3
I've hit the exact same problem on multiple Win2000 machines. This works fine under NT & 98, seems like there is something wrong with crosshair cursor and Win2000. Anyone else having this problem on Win2000?
rolandmartin at 2007-6-29 17:54:31 > top of Java-index,Desktop,Core GUI APIs...
# 4

I have some news on this problem. After messing around with Win2000 settings it appears the default cursor scheme has the cursor for the crosshair incorrectly set. Go into Settings/Control Panel/Mouse/Pointers and change the scheme to anything except none and Windows default. Run your Java application again and the current scheme's crosshair will show up correctly. Incredibly the MS KB had no information on this bug along with the other 50 MS bugs I've hit over the past couple of months.

Hope this helps.

rolandmartin at 2007-6-29 17:54:31 > top of Java-index,Desktop,Core GUI APIs...