Embedding Xith3d in JComponent

I am creatinga Mathematical program. I want it to render 3d graphs. Xith3d looks like a good engine.

But,

I want to create a Component3D where i can add 3dobjects to. But is it possible to render within a JComponent using for exmaple paintComponent(Graphics g).
All the examples never user paintComponent.

Is it possible, and if so how do i do it.
PS: It is not possble with Java3D because Java3D is heavyweight and Swing is leightweight. The problem then is that Pop-up/menus go behind the 3d component.

Who can help me?

If pop up menus are your only problem, then theres a flag to force menus to be heavyweight ( http://www.j3d.org/faq/swing.html ). Xith (and indeed any hardware accelerated 3d engine) uses a heavyweight component which will cause the usual depth ordering problems.

If you really need a lightweight 3d display, then perhaps jPCT will do what you want ( http://www.jpct.net/ ).