Java3D bug using JDK11
Posted by DonPearson on Aug 18, 2019; 5:41pm
URL: https://forum.jogamp.org/Java3D-bug-using-JDK11-tp4039952.html
While porting my software over to the JDK11 environment, I noticed the following bug that I would like to report: when running Java11, I have lost the middle mouse button functionality that exists with the same code running under Java8. That functionality was used to zoom with the mouse:
//Set up ZOOMing behavior around TG3.
MouseZoom mouseZoom = new MouseZoom(); //CENTER BUTTON (or ALT-leftButton)
mouseZoom.setTransformGroup(tg3);
mouseZoom.setSchedulingBounds(bs);
tg3.addChild(mouseZoom);
mouseZoom.setFactor(0.001);
//System.out.println("mouseZoom");
A little bit more insight into the MouseZoom anomaly: in JDK8, my software works as expected: the left mouse button is programmed and works as expected, the center mouse button also works as expected (shown above), and the right mouse button is not programmed, but works like expected (i.e. it does nothing). The JDK11 version of the software has all three buttons behaving as if they were the left button. I was able to move the code snippet for the center mouse over to the MouseWheelZooom class and now it behaves as programmed. All of these mouse classes come from javax.media.j3d.SceneGraphObject -- so something must have changed up at that level in javax to cause the anomalous functioning of the center and right mouse buttons.