001package jmri.jmrit.lcdclock;
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 LcdClockFrame object
010 *
011 * @author Ken Cameron Copyright (C) 2007
012 * @author Bob Jacobsen Copyright (C) 2024
013 *
014 * This was a direct steal form the Nixie clock code, ver 1.5. 
015 */
016public class LcdClockAction extends JmriAbstractAction {
017
018    public LcdClockAction() {
019        this("LCD Clock");
020    }
021
022    public LcdClockAction(String s) {
023        super(s);
024    }
025
026    public LcdClockAction(String s, WindowInterface wi) {
027        super(s, wi);
028    }
029
030    public LcdClockAction(String s, Icon i, WindowInterface wi) {
031        super(s, i, wi);
032    }
033
034    @Override
035    public void actionPerformed(ActionEvent e) {
036
037        LcdClockFrame f = new LcdClockFrame();
038        f.setVisible(true);
039
040    }
041
042    @Override
043    public jmri.util.swing.JmriPanel makePanel() { return null; } // not used here
044
045}