1 import java.awt.event.ActionEvent;
2 
3 import javax.swing.AbstractAction;
4 
5 /**
6  * Simple Action to exit a program.
7  * 
8  *  This is intended for usage in swixml xml descriptors and may be instantiated through
9  *  <code>initclass="ExitAction"</code> for arbitary enclosing {@link javax.swing.AbstractButton}
10 *  objects.
11 */
12public class ExitAction extends AbstractAction {
13  public void actionPerformed(ActionEvent e) {
14    System.exit(0);
15  }
16}
17