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