< Zurück | Inhalt | Weiter >

Writing a simple keyboard behavior

Simple keyboard processing is easy to accomplish; for example, the following class simply modifies a

TransformGroup in response to presses of the left and right arrow keys.


 

From the AvatarTest example, CarSteering.java