Avatar of zynxeyes
zynxeyes

asked on 

Java Cursor ; getType of Cursor in java ; Hand_Cursor

How to test if the cursor displayed on the screen is the Hand cursor?
I was trying with some code like this:
############################################################
Cursor cursorshape = this.getCursor();
System.out.println("The cursor is: "+cursorshape.getType());
 if (cursorshape.getType() != Cursor.HAND_CURSOR ){
             System.out.println("Any luck ? ");
      }
############################################################

But so far had not any luck.

Please tell me correct code to test that.


Thanks.
Java

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon