001package jmri.jmrix.lenz.swing.stackmon; 002 003import java.awt.event.ActionEvent; 004import jmri.jmrix.lenz.swing.AbstractXPressNetAction; 005 006/** 007 * Swing action to create and register a StackMonFrame object 008 * 009 * @author Paul Bender Copyright (C) 2005 010 */ 011public class StackMonAction extends AbstractXPressNetAction { 012 013 public StackMonAction(String s, jmri.jmrix.lenz.XNetSystemConnectionMemo memo) { 014 super(s,memo); 015 } 016 017 public StackMonAction(jmri.jmrix.lenz.XNetSystemConnectionMemo memo) { 018 this(Bundle.getMessage("MenuItemCSDatabaseManager"), memo); 019 } 020 021 @Override 022 public void actionPerformed(ActionEvent e) { 023 024 // create a StackMonFrame 025 StackMonFrame f = new StackMonFrame(_memo); 026 f.setVisible(true); 027 } 028 029}