001package jmri.jmrit.analogclock; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005 006/** 007 * Swing action to create and register a AnalogClockFrame object. 008 * Copied from code for NixieClockAction by Bob Jacobsen. 009 * 010 * @author Dennis Miller Copyright (C) 2004 011 */ 012public class AnalogClockAction extends AbstractAction { 013 014 public AnalogClockAction() { 015 this(Bundle.getMessage("MenuItemAnalogClock")); 016 } 017 018 public AnalogClockAction(String s) { 019 super(s); 020 } 021 022 @Override 023 public void actionPerformed(ActionEvent e) { 024 025 AnalogClockFrame f = new AnalogClockFrame(); 026 f.setVisible(true); 027 } 028 029}