Dialogue: ActionEvents 2
The text field’s ActionListener is defined as:
class SenseWordCallback implements ActionListener
{
Button aButton;
SenseWordCallback(Button addButton)
{
}
public void actionPerformed(ActionEvent e)
{
aButton.setEnabled(true);
}
}
Constructor needed so that
the add button’s id is known.