• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions on Java3D  RSS feed

 
Anthony Yip
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!