001package jmri.jmris; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005 006/** 007 * Swing action to create and register a JmriServerControlFrame object 008 * 009 * @author Paul Bender Copyright (C) 2010 010 */ 011public class JmriServerAction extends AbstractAction { 012 013 public JmriServerAction(String s) { 014 super(s); 015 } 016 017 public JmriServerAction() { 018 this("Start Jmri Server"); 019 } 020 021 @Override 022 public void actionPerformed(ActionEvent e) { 023 024 JmriServerFrame f = new JmriServerFrame(); 025 f.setVisible(true); 026 027 } 028} 029 030 031