001package jmri.jmrit.automat;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Swing action to create and register a SampleAutomaton object
008 *
009 * @author Bob Jacobsen Copyright (C) 2003
010 */
011public class SampleAutomatonAction extends AbstractAction {
012
013    public SampleAutomatonAction(String s) {
014        super(s);
015    }
016
017    @Override
018    public void actionPerformed(ActionEvent e) {
019        // create a SampleAutomaton
020        AbstractAutomaton f = new SampleAutomaton();
021        f.start();
022    }
023}