I have a Swing application that needs to display a few 3D diagrams. As Java3D is AWT, will it cause problems in a Swing application? Furthermore, could anyone please tell me what the differences between DirectX and OpenGL versions of Java3D? Thanks in advance Regards Anthony
Yes, a Java3D canvas will cause the same problems any other AWT component will in a Swing application. You can't layer any Swing components over it, so JTabbedPanes, JInternalFrames, JScrollPanes, etc. don't really work with the AWT component, and you have to set JPopups and JMenus to be heavyweight so they will appear on top of the AWT component.
There shouldn't be any noticeable difference *to you* between the DirectX and OpenGL versions of Java3D (other than the DirectX version is Windows only). It just means that the Java3D API is implemented using either DirectX or OpenGL under the hood, the API is still exactly the same.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.