Exemple #1
0
 static void setTransparentCursor(Object display) {
   int[] pixels = new int[1];
   java.awt.Image image =
       Toolkit.getDefaultToolkit().createImage(new MemoryImageSource(1, 1, pixels, 0, 1));
   Cursor transparentCursor =
       Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(0, 0), "invisibleCursor");
   ((Container) display).setCursor(transparentCursor);
 }
Exemple #2
0
 static void setCursor(int c, Object display) {
   ((Container) display).setCursor(Cursor.getPredefinedCursor(c));
 }