GLWindow Cursor problems
Posted by Itun on Mar 30, 2011; 11:13pm
URL: https://forum.jogamp.org/GLWindow-Cursor-problems-tp2756277.html
How to set a cursor for GLWindow?
I put my GLWindow to JPanel and hide its cursor :
// Transparent 16 x 16 pixel cursor image.
BufferedImage cursorImg = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
// Create a new blank cursor.
blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
cursorImg, new Point(0, 0), "blank cursor");
jPanelwithGLWindow.setCursor(blankCursor);
It does not work.
Than I hide a JFrame cursor with this method. Everywhere in the JFrame it is transparent, but I see it as a default cursor in GLWindow.
How to set cursor position on the GLWindow?