1 import java.awt.event.ActionEvent;
2 
3 import javax.swing.AbstractAction;
4 import javax.swing.JOptionPane;
5 // $Id: MacExitAction.java,v 1.1 2004/10/05 21:32:34 tichy Exp $
6 
7 /**
8  * Externalized exit action taken from {@link HelloMac}.
9  * 
10 * @author $Author: tichy $
11 */
12public class MacExitAction extends AbstractAction {
13    public void actionPerformed( ActionEvent e ) {
14        JOptionPane.showMessageDialog( MacTest.getSwix().getRootComponent(), 
15                MacTest.getSwix().getLocalizer().getString("mis_Exit"));
16        System.exit(0);
17      }
18}
19