java-gnome version 4.0.13

org.gnome.gdk
Class Cursor

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.gnome.glib.Boxed
          extended by org.gnome.gdk.Cursor

public final class Cursor
extends Boxed

That which indicateth where your mouse is pointing!

A Cursor object must be bound to a underlying Window before [changing it] will actually cause what the user sees to change; see setCursor() on the Window here in org.gnome.gdk.

Quite frequently you want to change the Cursor for the entire application (in a manner reminiscent of modal behaviour). This is trickier than it should be, but you've got a couple possibilities. You can either

The first option is a bit more cumbersome, but many people find themselves maintaining a list of "major" Windows for other purposes, so it can serve.

Almost inevitably the Cursor your want is WATCH which is the "busy" pointer. You can revert to "normal" by setting LEFT_PTR directly (which is the default cursor you spend most of your time looking at), or by passing null to setCursor().

Note that different theme engines (let alone different Linux vendors) tend to screw with the default pointer icons set quite a bit, so you may find that pointers appear very different for users on different distributions.

Our implementation of Cursor assumes you want to manipulate GdkCursors on the "default" GdkDisplay. Where else would you be working?

Since:
4.0.6
Author:
Andrew Cowie

Constructor Summary
Cursor(CursorType type)
          Create a new Cursor with the specified CursorType.
 
Method Summary
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cursor

public Cursor(CursorType type)
Create a new Cursor with the specified CursorType.

Since:
4.0.6


java-gnome