1 | Consider the standard example of hooking up two buttons to start and stop the Juggler animation bean. |
2 | First we place a button and name it start. We want to hook up its actionEvent with the method called start() in the Juggler, which starts the animation. |
3 | The BeanBox allows us to select the actionPerformed event from the "button push" menu, select the Juggler bean to be the target, and select its start method. |
4 | What this does is to create a class that implements an ActionListener (or inherits from the ActionListener adapter class). |