Dialogue: ActionEvents 3
All EventListener have to be registered with the widgets or windows which generate the events they have to handle.
SenseWordCallback wordReadycb;
Button addButton;
addButton = new Button(“add”);
wordreadycb = new SenseWordCallback(addButton);
addButton.addActionListener(wordreadycb);
When an event of the appropriate type occurs on a widget/window, the registered EventListener’s callback method is called by the run-time system.