Cursor.getType() has the following syntax.
public int getType()
In the following code shows how to use Cursor.getType() method.
import java.awt.Cursor; public class Main { public static void main(String[] args) { System.out.println(Cursor.getDefaultCursor().getType()); } }
The code above generates the following result.