Integrating a Xith3D view inside a JPanel in Netbeans?

I want to put a Xith3D window in the blank panel here:

http://rdecosta.no-ip.com/fase/show_image.php?id=30

the catch is, it’s in the NetBeans GUI designer. What’s the best way to about this?

Cheers,
Dr.E ???

Easy - look at the source code and edit it by hand. You can’t do it with the NB gui designer.

That part I know. :wink: I was wondering about the code needed to get the Xith3D window to render in the JPanel.

Dr.E

RenderPeer.createCanvas()

important: set the Layout of your JPanel to BorderLayout or GridLayout(1,1)

Got it. For those of you who want to see exactly how it’s done:

http://rdecosta.no-ip.com/fase/show_image.php?id=32&thumb=1

Source:
http://rdecosta.no-ip.com/fase/tiki-download_file.php?fileId=37

Cheers,
Dr.E