001package jmri.jmris.srcp;
002
003import java.util.ResourceBundle;
004import javax.swing.JMenu;
005
006/**
007 * Create a "JMRI SRCP Server" menu containing the Server interface to the JMRI
008 * system-independent tools
009 *
010 * @author Paul Bender Copyright 2009
011 */
012public class JmriSRCPServerMenu extends JMenu {
013
014    public JmriSRCPServerMenu(String name) {
015        this();
016        setText(name);
017    }
018
019    public JmriSRCPServerMenu() {
020
021        super();
022
023        ResourceBundle rb = ResourceBundle.getBundle("jmri.jmris.srcp.JmriSRCPServerBundle");
024
025        setText(rb.getString("MenuServer"));
026        add(new jmri.jmris.srcp.JmriSRCPServerAction(rb.getString("MenuItemStartServer")));
027
028    }
029}