Java Cursor.getType()

Syntax

Cursor.getType() has the following syntax.

public int getType()

Example

In the following code shows how to use Cursor.getType() method.


import java.awt.Cursor;
//from w ww  .ja v a2  s.  com
public class Main {
  public static void main(String[] args)  {

    System.out.println(Cursor.getDefaultCursor().getType());
  }
}




















Home »
  Java Tutorial »
    java.awt »




BasicStroke
BorderLayout
CardLayout
Color
Cursor
Desktop
DesktopManager
DisplayMode
EventQueue
FlowLayout
FocusTraversalPolicy
Font
FontMetrics
GradientPaint
Graphics
Graphics2D
GraphicsConfiguration
GraphicsDevice
GraphicsEnvironment
GridBagConstraints
GridBagLayout
GridLayout
Image
ItemSelectable
KeyboardFocusManager
LayoutManager
LayoutManager2
Point
Rectangle
Robot
Shape
SplashScreen
SystemColor
SystemTray
TexturePaint
TrayIcon
Toolkit
Transparency