001package jmri.jmrit.nixieclock;
002
003import java.awt.event.ActionEvent;
004import javax.swing.Icon;
005import jmri.util.swing.JmriAbstractAction;
006import jmri.util.swing.WindowInterface;
007
008/**
009 * Swing action to create and register a NixieClockFrame object
010 *
011 * @author Bob Jacobsen Copyright (C) 2004
012 */
013public class NixieClockAction extends JmriAbstractAction {
014
015    public NixieClockAction() {
016        this("Nixie Clock");
017    }
018
019    public NixieClockAction(String s) {
020        super(s);
021    }
022
023    public NixieClockAction(String s, WindowInterface wi) {
024        super(s, wi);
025    }
026
027    public NixieClockAction(String s, Icon i, WindowInterface wi) {
028        super(s, i, wi);
029    }
030
031    @Override
032    public void actionPerformed(ActionEvent e) {
033
034        NixieClockFrame f = new NixieClockFrame();
035        f.setVisible(true);
036    }
037
038    @Override
039    public jmri.util.swing.JmriPanel makePanel() { return null; } // not used here
040}