The com.xith3d.userinterface package can be used to place swing widgets inside a xith3d frame. however it is very buggy and slow. The better solution is to use the Foreground node, possibly using one of the newer UI packages:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1097928552;start=30#30Xith3D can also be placed inside a JPanel, allowing other widgets to be placed around it.
Example using a specified JFrame:
1 2 3 4 5 6 7 8 9 10
| RenderPeer rp = new RenderPeerImpl(); rootFrame = new JFrame(); cp = rp.makeCanvas(rootFrame.getContentPane(),firespite.canvasWidth,firespite.canvasHeight,firespite.bitDepth,false); canvas = new Canvas3D(); canvas.set3DPeer(cp); canvas.setView(new View()); view.addCanvas3D(canvas); |
Example using a specified JFrame & JPanel:
1 2 3 4 5 6 7 8 9 10
| RenderPeer rp = new RenderPeerImpl(); rootFrame = new JFrame(); JPanel p = new JPanel(); rootFrame.getContentPane().add(p); cp = rp.makeCanvas(p,firespite.canvasWidth,firespite.canvasHeight,firespite.bitDepth,false); canvas = new Canvas3D(); canvas.set3DPeer(cp); canvas.setView(new View()); view.addCanvas3D(canvas); |
I did reply to your email btw - didn't you get it?
Will.