About Swing within Lg3D

View: New views
2 Messages — Rating Filter:   Alert me  

About Swing within Lg3D

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Guys,
I am new to Lg3D.
I am developing few things in Java3D(source code will be available online).
& i want swing forms in Java3D, same as Lg3D is having.
But i am not getting, from where i should start ??
and which functionalities of Swing i have to extend..??

I think i should start with Lg3D code, but can anyone guide me where(which basic classes) to look at?? in Lg3D code.???
Or anyone who knows better ways of doing it.

Thanks,
- Nachiket
[Message sent by forum member 'nachiket_patel' (nachiket_patel)]

http://forums.java.net/jive/thread.jspa?messageID=251602

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: About Swing within Lg3D

by Kirk Turner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is some of the more complex code from LG3D that you are looking
at using. However, it should be doable. The basic principle is that a
new AWT Toolkit exists for LG3D to render the swing frames into a
buffered image for use as a texture.

As a place to start, have a look at the classes under
lg3d-core/src/classes6/ (this is the java6 specific awt
implementation). Note there is a different AWTToolkit for each
platform supported.

Also to see the implementation of this within LG3D have a look at the
lg3d-core/src/classes/org/jdesktop/lg3d/wg/SwingNode.java and the demo
application for it is in
lg3d-demo-apps/src/classes/org/jdesktop/lg3d/apps/tutorial/SwingNodeTutorial.java

Kirk

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...

LightInTheBox - Buy quality products at wholesale price