1 import java.awt.event.ActionEvent;
2 
3 import javax.swing.AbstractAction;
4 import javax.swing.JOptionPane;
5 // $Id: MacMultipleAction.java,v 1.1 2004/10/05 21:32:35 tichy Exp $
6 
7 /**
8  * Demonstrates delivering of a valid action command from the ActionEvent.
9  * 
10 * On MacOS, this contains strings like {@link org.swixml.Parser#ATTR_MACOS_ABOUT}
11 * when the attribute <code>"macos_about"</code> was set to <code>true</code>. See the
12 * provided file <code>mactester.xml</code> as an usage example. This allows specifying
13 * of multiple <code>"macos_*"</code> attributes for one {@link javax.swing.Action}.
14 *  
15 * 
16 * @author $Author: tichy $
17 */
18public class MacMultipleAction extends AbstractAction {
19
20    /* (non-Javadoc)
21     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
22     */
23    public void actionPerformed(ActionEvent arg0) {
24        // TODO Auto-generated method stub
25        JOptionPane.showMessageDialog( MacTest.getSwix().getRootComponent(), "This is the Mac OS X MultipleExample. Showing "+arg0.getActionCommand() );
26               
27    }
28
29}
30