javax.swing.plaf.basic
Class BasicOptionPaneUI.ButtonActionListener
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buttonIndex
protected int buttonIndex
- The index of the option this button represents.
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.
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.