Hi Raul,
popups are no problem, submenus in popup do work after you set
ToolTipManager.sharedInstance().setLightWeightPopupEnabled( false );
and
popupMenu.setLightWeightPopupEnabled( false );
popupMenu.setDefaultLightWeightPopupEnabled( false );
four your JPopup object.
you should also (i don't think that this is documented yet on j3d.org)
call the
popupMenu.show( component, mouseEvent.getX(), mouseEvent.getY() );
where component is NOT the Canvas3D object, but rather the frame the canvas is
embeded
in. (otherwise you will see a popup only in right or lower part of the canvas
where it starts
overlapping the canvas (really strange). Note: you might have to recompute the
x and y
possitions accordingly.
Cheers,
Karsten
Raul Rios wrote:
> Don�t be confused: I agree with you that Java3D is a
> very well designed-implemented-documented API.
> And sure: native windows render faster.
>
> However, I can�t succesfully get such simple things as
> popups menus over a Canvas3D or adding a Canvas3D to
> a JInternalFrame in my MDI application.
>
> I'll take a look at the link in J3DORG and see
> if it can help me.
>
> Anyway, thank you for your answer.
> I've learnt things that I didn�t know.
> Very useful to me.
>
> Regards.
>
> 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".