Hi,
Easiest is to use the AWT menus rather than the swing ones.
Also you can use chProp.setLightWeightPopupEnabled(false); where chProp
is a JComboBox. I think you can also use something like
JPopup.setLightWeightPopupEnabled(false); which will act for the whole
frame.

Regards

Mike Goldwater
Auric Hydrates Ltd
[EMAIL PROTECTED]>


> -----Original Message-----
> From: Discussion list for Java 3D API [mailto:JAVA3D-
> [EMAIL PROTECTED]] On Behalf Of Innes, Erik
> Sent: 20 March 2002 17:26
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Canvas3D not honoring layering
>
> Thanks for the help. I did what the FAQ recommended, and things work
fine
> now as far as the menus go.
>
> Looks like I'll need to move the Canvas3D out of the JDesktopPanel and
> give
> it it's own window, in order to get away from the JinternalFrame vs.
> heavyweight component issue.
>
> Is Java 3D going to stick with Canvas3D being an AWT component in the
> future?
>
> -----Original Message-----
> From: Josh Richmond [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 18, 2002 7:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Canvas3D not honoring layering
>
>
> Check the J3D FAQ regarding mixing heavy and lightweight components:
> http://www.j3d.org/faq/swing.html
>
> >>> [EMAIL PROTECTED] 03/18/02 10:41AM >>>
> Canvas3D seems to always keep itself on top, so that drop down menus
(and
> other GUI components) always fall behind it. Is there any way to get
the
> Canvas3D to honor the layering of other components?
>
> Here's a piece of my code. The internal frame that the Canvas3D is
placed
> in
> works fine, and it's own boundary get's covered by the menu drop
downs,
> but,
> not the Canvas3D itself.
>
>
> public class MainDesktop extends JDesktopPane {
>
>   private MainDesktop() {
>     ...
>     addViewFrame();
>   }
>
>   ...
>   private void addViewFrame() {
>     JInternalFrame viewFrame = new JInternalFrame();
>     viewFrame.setBounds(VIEW_LEFT, VIEW_TOP, VIEW_WIDTH, VIEW_HEIGHT);
>     viewFrame.setNormalBounds(viewFrame.getBounds());
>     viewFrame.setVisible(true);
>     this.add(viewFrame, JLayeredPane.DEFAULT_LAYER);
>     // If do the following before viewFrame is added to the
JDesktopPanel,
>     //   adding to the JDesktopPanel fails. Cannot load the Canvas3D.
>     java.awt.Container cp = viewFrame.getContentPane();
>     cp.setLayout(new BorderLayout());
>     cp.add(ViewCanvas.getReference(), BorderLayout.CENTER);
>    }
>   ...
> }
>
>
========================================================================
==
> 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".

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