001package jmri.jmrit.pragotronclock;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Swing action to create and register a PragotronClockFrame object.
008 *
009 * @author Petr Sidlo Copyright (C) 2019
010 *
011 * Based on Nixie clock by Bob Jacobsen.
012 */
013public class PragotronClockAction extends AbstractAction {
014
015    public PragotronClockAction() {
016        this("Pragotron Clock");
017    }
018
019    public PragotronClockAction(String s) {
020        super(s);
021    }
022
023    @Override
024    public void actionPerformed(ActionEvent e) {
025
026        PragotronClockFrame f = new PragotronClockFrame();
027        f.setVisible(true);
028    }
029
030}