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