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