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 ...
- 07-14-2008 #1Just 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?
- 08-28-2008 #2Just Joined!
- Join Date
- Aug 2008
- Posts
- 1
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 JVMReturns:
the maximum number of colors, or zero if custom cursors are not supported by this Toolkit implementation.


Reply With Quote