I've seen similar problems when mixing AWT and Swing components.
Are you sure you aren't mixing them somehow.

What would happen in my mixed AWT/Swing frame is that I would have to click
on everything twice to get them to work.

So if I had a JButton and a Button, I would have to click on either of them
twice to get them to fire.  If I had multiple JButtons and clicked on one,
then clicked on another JButton, it would fire.  The same was true for two
Buttons.  Click one once and then click the other once and it would fire.
Actually, I could infinitely click a JButton then a Button then a JButton
and so on and so on.

The reason was the event handlers for the two different types of
components. The first click would say "Hey use the event handler for this
type of component" and the second click would fire the event if the event
handler was the correct handler for that type of object.  If you clicked a
JButton and then a Button and then a JButton, this would just keep
switching from one event handler to the other.

This sounds very similar to your problem.



At 08:06 AM 10/4/2000 +0200, you wrote:
>Hi there, I'm having a problem with behaviors , I think.  When I click in a
>Jmenu to turn the rotate behavior on, I always have to click twice to make
>it work on the canvas3d.  I'm using only Swing and the canvas3d.  Do I have
>to change the focus to fix this or is this a problem in the
>com.sun.j3d.utils package.  I've recompiled the source of the MouseBehavior
>but couldn't find enything that has to do with this.
>
>TNX in advance
>
>
>--------------------------------------------------
>Thijs Maenhout
>Software Developer
>
>QMatics nv
>Bruggesteenweg 112
>8830 Hooglede - Belgium
>--------------------------------------------------
>Tel.    +32 51 27 24 00
>Fax     +32 51 27 24 01
>--------------------------------------------------
>mailto:[EMAIL PROTECTED]
>
>===========================================================================
>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".

***********************************************************************
Eric Reiss - http://www.sigda.acm.org/Eric/
Email: [EMAIL PROTECTED]

SIGDA Internet Server Manager - http://www.sigda.acm.org/

Assistant Systems Manager - School of Engineering
University of Pittsburgh
***********************************************************************

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