Reputation: 546
In Windows OS is it possible to check the cursor type ?
if yes then how can I determine that whether the cursor type is text cursor or not, using java?
Upvotes: 0
Views: 2102
Reputation: 49567
I believe you can use java's Cursor class to get the type of cursor.
Take a look at Cursor.getName() for your task.
Example Code:
Cursor cursor = Cursor.getDefaultCursor();
System.out.println(cursor.getName());
System.out.println(cursor.getType());
Output = Default Cursor
0
I f you take a look at Cursor.java. It mentions that
/**
52 * The default cursor type (gets set if no cursor is defined).
53 */
54 public static final int DEFAULT_CURSOR = 0;
So, I believe you have to mention the cursor type manually in your java code.
Upvotes: 1