001package jmri.jmrit.lcdclock; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005 006/** 007 * Swing action to create and register a LcdClockFrame object 008 * 009 * @author Ken Cameron Copyright (C) 2007 010 * 011 * This was a direct steal form the Nixie clock code, ver 1.5. Thank you Bob 012 * Jacobsen. 013 */ 014public class LcdClockAction extends AbstractAction { 015 016 public LcdClockAction() { 017 this("LCD Clock"); 018 } 019 020 public LcdClockAction(String s) { 021 super(s); 022 } 023 024 @Override 025 public void actionPerformed(ActionEvent e) { 026 027 LcdClockFrame f = new LcdClockFrame(); 028 f.setVisible(true); 029 030 } 031 032}