Difference between revisions of "Hide the mouse cursor"

From CodeCodex

m (considered)
m (Reverted edits by Noemistegman (talk) to last revision by Nostromo)
 
Line 1: Line 1:
 
==Implementations==  
 
==Implementations==  
スピリチュアルカウンセラー
+
===Java===
 +
One way is to use a transparent GIF as the cursor or create one. <pre class="java">
 +
int[] pixels = new int[16 * 16];
 +
Image image = Toolkit.getDefaultToolkit().createImage(
 +
        new MemoryImageSource(16, 16, pixels, 0, 16));
 +
Cursor transparentCursor =
 +
        Toolkit.getDefaultToolkit().createCustomCursor
 +
            (image, new Point(0, 0), "invisibleCursor");
  
サイキック/スピリチュアルカウンセラーのキャンデスによる、スピリチュアルなDNAアクティベーション。人生が変わり始めます。
+
</pre>
 +
[[Category:Java]]

Latest revision as of 21:38, 4 September 2012

Implementations[edit]

Java[edit]

One way is to use a transparent GIF as the cursor or create one.
int[] pixels = new int[16 * 16];
Image image = Toolkit.getDefaultToolkit().createImage(
        new MemoryImageSource(16, 16, pixels, 0, 16));
Cursor transparentCursor =
        Toolkit.getDefaultToolkit().createCustomCursor
             (image, new Point(0, 0), "invisibleCursor");