Thanks to all of you who try to answer my 'not so clear' previous message.
I'm not sure that I've explain my problem very well. I'll try to be clearer
this time...
I have a class that extends behavior. In this class, I have this wake up
criterion:
WakeupCriterion[] keyEvents = new WakeupCriterion[2];
keyEvents[0] = new WakeupOnAWTEvent( KeyEvent.KEY_PRESSED );
keyEvents[1] = new WakeupOnAWTEvent( KeyEvent.KEY_RELEASED );
I use these key events to create a key navigator by my own.
My program also have a menu bar(in Swing) with hotkeys like (ctrl-c) and
stuff like that.
Normally, when you don't have KeyEvents, you can use the hotkeys
without problem ( even if the control is focus on the canvas 3d). But the
problem appear when you add the keyEvents. The hotkeys in the
menubar are working only if the control is re-focus on an anothers swing
component like JComboBox or the menuBar itself (not working with sliders
and jlabel...). If the mouse past over the canvas3D, then the keyevent is trap
by the behavior and it's not send anymore to the menu bar.
My question is: Is it possible to send the keyEvent trap by my behavior
class to the JMenuBar (or all the swing component).
At 12:46 07/08/00 -0500, you wrote:
>Hi Francois,
>I will be trying to do this soon. I plan to extend the Key Navigator
>Behavior by adding addition keys. Anyone have a better idea?
>
>> ----------
>> From: Fran�ois Savard[SMTP:[EMAIL PROTECTED]]
>> Reply To: Discussion list for Java 3D API
>> Sent: Monday, August 07, 2000 11:05 AM
>> To: [EMAIL PROTECTED]
>> Subject: [JAVA3D] mixing key behavior
>>
>> Hello,
>>
>> Does anybody know how redirect a key event happening in a canvas 3d to
>> the swing components?
>>
>> I my project, I want to navigate throught the world with arrows keys and I
>> also
>> need to enable some of my swing component in the menubar with hotkeys.
>>
>> Is it possible? Is there somebody who knows how to do that?
>> Any answer are welcome
>>
>>
>> Thanks
>> ====================
>> Fran�ois Savard
>> OPEA-MAT/ Telelabs
>> D�partement de G�nie Civil
>>
>> ==========================================================================
>> =
>> 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".