javax.swing.plaf.basic
Class BasicOptionPaneUI.ButtonActionListener

java.lang.Object
  extended by javax.swing.plaf.basic.BasicOptionPaneUI.ButtonActionListener
All Implemented Interfaces:
ActionListener, EventListener
Enclosing class:
BasicOptionPaneUI

public class BasicOptionPaneUI.ButtonActionListener
extends Object
implements ActionListener

This is a helper class that listens to the buttons located at the bottom of the JOptionPane.


Field Summary
protected  int buttonIndex
          The index of the option this button represents.
 
Constructor Summary
BasicOptionPaneUI.ButtonActionListener(int buttonIndex)
          Creates a new ButtonActionListener object with the given buttonIndex.
 
Method Summary
 void actionPerformed(ActionEvent e)
          This method is called when one of the option buttons are pressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttonIndex

protected int buttonIndex
The index of the option this button represents.

Constructor Detail

BasicOptionPaneUI.ButtonActionListener

public BasicOptionPaneUI.ButtonActionListener(int buttonIndex)
Creates a new ButtonActionListener object with the given buttonIndex.

Parameters:
buttonIndex - The index of the option this button represents.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
This method is called when one of the option buttons are pressed.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - The ActionEvent.