Java3D bug using JDK11

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Java3D bug using JDK11

DonPearson
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.
Reply | Threaded
Open this post in threaded view
|

Re: Java3D bug using JDK11

gouessej
Administrator
Hello

By the way, try with Java3D 1.7 too.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Java3D bug using JDK11

DonPearson
Just want to make sure I know where the official release of Java3D 1.7 is?    If I go to the thread at the top of this site (http://forum.jogamp.org/JogAmp-s-Java3D-continuation-Java3D-1-6-0-and-later-td4030907.html) and click on the "follow these steps link", I can see a translated page that has links to Java3D 1.6 but I don't see a link to Java3D 1.7?  

Reply | Threaded
Open this post in threaded view
|

Re: Java3D bug using JDK11

DonPearson
In reply to this post by gouessej
BTW, I did find the 3 jar files in:  https://jogamp.org/deployment/java3d/1.7.0-pre1/   So perhaps you might just want to update your thread to point to that location?   Anyway, I did download the 3 updated jar files and switch them out with the 1.6 versions that I had, and still got the same result regarding mouse behavior.  

Reply | Threaded
Open this post in threaded view
|

Re: Java3D bug using JDK11

gouessej
Administrator
Some developers stick with Java3D 1.6 because they don't want to modify the imports in their source code. Note that Java3D 1.7 is mentioned above. Thanks, I'm going to update the guide.
Julien Gouesse | Personal blog | Website