I used a JPanel to contain the Canvas3D before I placed it in the
JTabbedPane. (As an aside, I also inserted some code to detect when a
tab other than the one holding the Canvas3D has been selected and did a
View.stopView() to keep the J3D from hogging the CPU.)
JTabbedPane mainTabs = new JTabbedPane();
JPanel navPanel = new JPanel();
navPanel.setLayout(new BorderLayout());
mainTabs.add("Navigator", navPanel);
Canvas canvas = new Canvas3D(...);
navPanel.add("Center", canvas);
-Lee
J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]
-----Original Message-----
From: grace Wang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 3:11 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Swing & java3D
Hi, everyone,
I try to put a Canvas3D into a tabbedPane(swing), Could you please
tell me
how to write the exact code. I try to use add(), it gives me error
message.
Qi
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
========================================================================
===
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".