001package jmri.jmrix.lenz.swing.lv102;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Swing action to create and register an LV102Frame object.
008 * <p>
009 * The {@link LV102Frame} is a configuration tool for the LV102 booster, and the
010 * booster portion of an LZV100 command station.
011 *
012 * @author Paul Bender Copyright (C) 2004
013 */
014public class LV102Action extends AbstractAction {
015
016    public LV102Action(String s) {
017        super(s);
018    }
019
020    public LV102Action() {
021
022        this(Bundle.getMessage("MenuItemLV102ConfigurationManager"));
023    }
024
025    @Override
026    public void actionPerformed(ActionEvent e) {
027        // create an LV102Frame
028        LV102Frame f = new LV102Frame(Bundle.getMessage("MenuItemLV102ConfigurationManager"));
029        f.setVisible(true);
030    }
031}
032