ActionListener quitListener = new ActionListener()
{
public void actionPerformed(ActionEvent ev)
{
ButtonEvent be = new ButtonEvent(ev.getSource(), fQuitButtonName);
for (ButtonActionListener li : buttonListeners)
{
li.buttonActionPerformed(be);
}
}
};
quitButton.addActionListener(quitListener);
continueButton =
UIFactory.makeJButton(INFO_CONTINUE_BUTTON_LABEL.get(),
INFO_CONTINUE_BUTTON_INSTALL_TOOLTIP.get());
final ButtonName fContinueButtonName = ButtonName.CONTINUE_INSTALL;
ActionListener continueListener = new ActionListener()
{
public void actionPerformed(ActionEvent ev)
{
ButtonEvent be = new ButtonEvent(ev.getSource(), fContinueButtonName);
for (ButtonActionListener li : buttonListeners)
{
li.buttonActionPerformed(be);
}
}