you can simply use 2d (AWT or swing) components for your interface (for
example, list boxes, buttons, menus, or whole dialogs). you simply have to
place both the canvas3d and the interface components into a panel or a
different container (you might also want to use two different frames, one
for the scene and one for the interface).

for example:

        Frame f=new Frame("3D/2D Interface Test");
        f.setLayout(new BorderLayout());
        f.add(myCanvas3D,BorderLayout.WEST);
        f.add(myInterfaceComponent,BorderLayout.EAST);

the scene graph is intended for placing 3d objects, not for incorporating a
2d user interface.

you can even place 2d components on top of the canvas3d as long as you are
using heavyweight components. for example i am using a java.awt.PopupMenu in
my app, which is displayed on top of the 3d view.

there have been some other postings on canvas3d+user interface the last
days, you should browse the archive.

btw, i think some of the java3d demos show how to combine a canvas3d with
awt components.

-- julian

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan Albert C.
Vallar
Sent: Wednesday, March 01, 2000 3:44 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Interface Problem


Sir or Madam,

        I am student of the University of the Philippines and is doing a
applet about the virtual campus.

        Basically I am a total newbie to java 3d and has read the tutorial
from the Sun website and read the Spec book and the Ready to Run Book..

        Basically, I have a virtual scene that view the whole campus nad
there are menus that enable you to go to other buildings of the campus.
The interface also has a rotation (X,Y,Z), a  listbox or a choice box of
the available vew, buttons for change in lighting, and a button to go to
the webpage of a particular department residing in the building.

        From all that I have read, I think I can implement this but will
take a very long time.. My primary problem now is how can I place the
interface inside that panel where the canvas3d is also place. From what I
have read and analyzed, particularly the Ready to Run Book, you will have
to place the interface inside the scenegraph. Is this right?

        Thanks in advance for you needed reply!!!


                                                        Bam-Bam

===========================================================================
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".

===========================================================================
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".

Reply via email to