I have a TopComponent (from Netbeans RCP) with a GLCanvas (tried GLJPanel, too) sitting in it. In my constructor I have these two lines
{
...
glCanvas.addGLEventListener(this);
glCanvas.addMouseListener(this);
}
The GLEvent handling functions are being called appropriately, but I can’t get any mouse events at all. mousePressed is never entered. I’m not sure if this is related to Netbeans RCP modules–I’m told by others it’s not–but I’ve never had this situation happen. It’s fairly simple. Add the TopComponent to the GLCanvas mouse list, and mousePressed gets called. I’ve done it successfully in a normal Java app using JOGL. Does Netbeans RCP do anything funky to catch these mouse events?