How can I put a 3d scene into one specific panel that I've created by using Nifty GUI?

I’ve changed my codes during the instruction in the ‘Nifty GUI’ part. But I still cannot put a 3d scene into the panel by clicking a button. I thinks may be it is because I don’t point out one specific panel that the scene should be displayed. But I don’t know the code to point out a panel to display.

Looking forward to your kindly helps.

Is there any reason why it has to be on a panel? Can you not just use multiple viewports to overlay the viewport directly?

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:multiple_camera_views

and

Google Code Archive - Long-term storage for Google Code Project Hosting.



If you insist on using a nifty panel, I think you could implement a Control that sets up the viewport on top of a nifty element and updates the viewport according to the underlying element.