Since the behaviors only wake up on awt events, a limitation in java3d
currently, the next best way to wakeup behaviors by swing events is to implement
a weird post id behavior
you create a listener object that takes in it's constructor the behavior and the
behaviors id
for a jslider perhaps, which listens to change events(swing event)
below is a really simplistic pseudo-code of what you could do to incorporate
swing events and behaviors together.
JSlider slide = new JSlider()
MyChangeListener changeListener = new
MyChangeListener(BehaviorThatDoesSomething, BehaviorID);
class MyChangeListener implements ChangeListener
{
Behavior beh;
int id;
public MyChangeListener(Behavior, id)
{
beh = Behavior;
this.id = id;
}
public void stateChanged(ChangeEvent evt)
{
beh.setEvent(evt);
beh.postID(id);
}
}
Scott
Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]
please feed the squirrels
===========================================================================
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".