001package jmri.jmrit.analogclock; 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 AnalogClockFrame object. 010 * Copied from code for NixieClockAction by Bob Jacobsen. 011 * 012 * @author Dennis Miller Copyright (C) 2004 013 */ 014public class AnalogClockAction extends JmriAbstractAction { 015 016 public AnalogClockAction() { 017 this(Bundle.getMessage("MenuItemAnalogClock")); 018 } 019 020 public AnalogClockAction(String s) { 021 super(s); 022 } 023 024 public AnalogClockAction(String s, WindowInterface wi) { 025 super(s, wi); 026 } 027 028 public AnalogClockAction(String s, Icon i, WindowInterface wi) { 029 super(s, i, wi); 030 } 031 032 @Override 033 public void actionPerformed(ActionEvent e) { 034 035 AnalogClockFrame f = new AnalogClockFrame(); 036 f.setVisible(true); 037 } 038 039 @Override 040 public jmri.util.swing.JmriPanel makePanel() { return null; } // not used here 041}