001package jmri.jmrit.automat.monitor;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Swing action to create and register a AutomatTable GUI
008 *
009 * @author Bob Jacobsen Copyright (C) 2004, 2008
010 */
011public class AutomatTableAction extends AbstractAction {
012
013    public AutomatTableAction(String actionName) {
014        super(actionName);
015    }
016
017    public AutomatTableAction() {
018        this(Bundle.getMessage("TitleAutomatTable"));
019    }
020
021    AutomatTableDataModel m;
022
023    AutomatTableFrame f;
024
025    @Override
026    public void actionPerformed(ActionEvent e) {
027        // create the frame
028        f = new AutomatTableFrame(new AutomatTableDataModel());
029        f.pack();
030        f.setVisible(true);
031    }
032
033}