Hi,

One solution that hasn't been mentioned, and can be more useful (though I haven't 
tried it with a canvas3d) is to stop your
other components getting the focus in the first place. This can be achieved by the 
JComponent method:

public void setRequestFocusEnabled(boolean requestFocusEnabled)

Provides a hint as to whether or not this JComponent should get focus. This is only a 
hint, and it is up to consumers that are
requesting focus to honor this property. This is typically honored for mouse 
operations, but not keyboard operations.


Cheers,

Brad



trz wrote:
>
> Simeon H.K. Fitch wrote:
>
> > I've unfortunately had to content with the situaltion where clicking the
> > mouse in the Canvas3D invokes a behavior which updates the state of
> > another component. And this particular component likes to temporarily
> > grab focus when its value changes, thereby causing the Canvas3D to loose
> > focus permanently. Then if the user wants to select something again,
> > they have to click *twice*... once to have the Canvas3D gain focus, and
> > a second time to deliver the event to the component.
>
> Hi,
> I've had a similar problem. I solved it with a focusListener that
> reassign the focus to the canvas. Maybe you can try something similar.
>
> Bye
>
> ===========================================================================
> 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".


----------------------------------------------------------------------------
This Email may contain confidential and/or privileged information and is
intended solely for the addressee(s) named. If you have received this
information in error, or are advised that you have been posted this Email by
accident, please notify the sender by return Email, do not redistribute it,
delete the Email and keep no copies.
----------------------------------------------------------------------------

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