001package jmri.jmrit.pragotronclock; 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 PragotronClockFrame object. 010 * 011 * @author Petr Sidlo Copyright (C) 2019 012 * 013 * Based on Nixie clock by Bob Jacobsen. 014 */ 015public class PragotronClockAction extends JmriAbstractAction { 016 017 public PragotronClockAction() { 018 this("Pragotron Clock"); 019 } 020 021 public PragotronClockAction(String s) { 022 super(s); 023 } 024 025 public PragotronClockAction(String s, WindowInterface wi) { 026 super(s, wi); 027 } 028 029 public PragotronClockAction(String s, Icon i, WindowInterface wi) { 030 super(s, i, wi); 031 } 032 033 @Override 034 public void actionPerformed(ActionEvent e) { 035 036 PragotronClockFrame f = new PragotronClockFrame(); 037 f.setVisible(true); 038 } 039 040 @Override 041 public jmri.util.swing.JmriPanel makePanel() { return null; } // not used here 042}