Ted,
I know you can set the cursor to an image file. We did this to remove
the cursor on a touchscreen app. Here is some code.

Cursor =
Toolkit.getDefaultToolkit().createCustomCursor(cursorImg.getImage(), new
Point(hotX, hotY), "name");
frame.setCursor(cursor);

The above lines of code were simplfied from our app. We used a GIF with
transparancy.
So, just load the image (using ImageIcon...), pick the hot point within
it, create the cursor and set it on your frame or panel.

David

PS. I can't vouch for the quality vs. standard cursors


Ted Hill wrote:

>Hello,
>
>I am working on an image viewer that displays gray-scale images.
>
>When the mouse is in the viewer, I set the cursor to the cross hair.
>
>When the cross hair cursor is over  black background, it is white.
>
>When over white background it is black.
>
>However, when over a gray background it is gray ==> INVISIBLE.
>
>Is there some other cursor that can be used for gray scale images and still
>allow the user 'fine' control when selecting points on an image?
>
>I tried creating a yellow cross hair with the vertical and horizontal lines
>only 1 pixel wide, but its appearance was 'crude' compared to the built-in
>cross hair.
>
>Thank you,
>
>Ted Hill
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA2D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to