I a开发者_运维百科m writing a an swt app that has an embeded GLCanvas
and I wanted to be able to find out the size of the current cursor, is this possible? And if I cannot get it from JOGL then is it possible from either swt or awt?
If by size you mean pixel dimensions, you can have a look at Toolkit.getBestCursorSize(int,int)
to check the supported cursor sizes on the platform.
Getting the cursor size is not generally useful, since much of a cursor may be transparent. I'm also unclear as to why you mention JOGL. The JOGL library doesn't interact with the cursor, as far as I know.
精彩评论