Multiple Tabbed Displays

We are investigating using JME in our simulation application. In this context, the simulation is a essentially a model that JME will provide a view for. A crude example would be representing model entities as cubes where the color of the cube is dependent upon some property of each entity. As far as our GUI goes, the idea is to embed the JME based display into our application where it becomes another visualization of the model. The different visualizations (charts, 2D visualizations etc.) are organized into tabs within the GUI.

So, my question then is what’s the appropriate structure here. I’ve been experimenting with a SimpleApplication instance per display as they do not show the same scene. I’m also wondering what’s the appropriate GUI component to place inside the tab. I’ve seen the TestAwtPanel example that uses AwtPanels inside JFrames, but I’m not sure if that is appropriate here. Any suggestions on this are appreciated.

thanks,

Nick

Rather than use the AwtPanels that I mentioned in my previous post, I’ve adapted the Swing Canvas example from the wiki. Unfortunately, I’ve run into some rendering issues with that. I’ve posted about that at

http://hub.jmonkeyengine.org/forum/topic/swing-canvas-issue/

Problems aside, I’m still interested in any comments / suggestions on using JME in this way.

thanks,

Nick

You have to use AWT panels, lwjgl doesn’t support multiple render displays.

OK. Thanks. Is there any downside / caveats to using the AWT panels?

Nick

There is overhead from copying the pixel data to the awt screen but that should be quite constant and it happens mostly on the CPU.