I'll
be very interested to see such a thing. Theoretically it's
possible.
How I
imagine it:
a)
create the swing panel
b)
create an offscreen image
c)
paint the swing panel on the offscreen image
d) set
the offscreen image as a texture of the java3d cube.
The
offscreen image need note to change unless something happens on the swing panel
(buttons pressed, text entered, etc.)
The
most difficult part is to handle the user interactions, i.e. if the user clicks
the mouse somewhere on the canvas3d where a swing button is displayed, you want
to catch that and send the appropiate message to the swing button
!
Cheers,
Florin
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]On Behalf Of B�nigot Yves
Sent: Montag, 26. April 2004 12:27
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Using swing inside a Java3D sceneI want to have a Swing user interface, painted on a face of a Java 3D Cube.There are tutorials and samples which describe using Java 3D *inside* Swing, but I didn't findanything on using Swing *inside* Java3D.However it seems that both technologies use the underlying awt at the low level, so I think itcould be possible to do that, providing I can set Swing to draw on a given rectangle on the screen(on of the Cube's face), possibly a "Graphics" object.Do you think there is a way to do that ? or is it still SciFi ?Have a nice dayyves Benigot=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
