Find the answer to your Linux question:
Results 1 to 2 of 2
I'm not getting any help from the Java community, so I'm trying the Linux community. I'm creating a custom cursor using png 16x16 images. The images are rendered perfect as ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2

    Creating a custom cursor using Java

    I'm not getting any help from the Java community, so I'm trying the Linux community.

    I'm creating a custom cursor using png 16x16 images. The images are rendered perfect as a cursor on Windows and Mac but, on Linux the image is horrible. Not usable at all. I used getMaximumCursorColors() to check the supported cursor colors for the Default Toolkit on Linux. The method call returns 0 which, seems to mean that custom cursors aren't supported. On Mac, this method call reports 2...billion colors.

    Any ideas or confirmation that custom cursors aren't supported on Linux systems?

  2. #2
    Just Joined!
    Join Date
    Aug 2008
    Posts
    1
    Returns:
    the maximum number of colors, or zero if custom cursors are not supported by this Toolkit implementation.
    So yes, getting max color return of zero tells you that the toolkit (i.e., native windowing code layer under the awt) does NOT support custom cursors. Could be the window manager you are using, could be the flavor of the JVM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...