001package jmri.jmrix.jinput.treecontrol;
002
003import java.awt.Container;
004import java.util.ResourceBundle;
005import javax.swing.BoxLayout;
006import jmri.util.JmriJFrame;
007
008/**
009 * Frame for controlling JInput access to USN
010 *
011 * @author Bob Jacobsen Copyright (C) 2008
012 */
013public class TreeFrame extends JmriJFrame {
014
015    ResourceBundle rb = ResourceBundle.getBundle("jmri.jmrix.jinput.treecontrol.TreeBundle");
016
017    /**
018     * {@inheritDoc}
019     */
020    @Override
021    public void initComponents() {
022
023        // set the frame's initial state
024        setTitle(rb.getString("WindowTitle"));
025
026        Container contentPane = getContentPane();
027        contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
028
029        // add only content pane
030        contentPane.add(new TreePanel());
031
032        // add help menu
033        addHelpMenu("package.jmri.jmrix.jinput.treemodel.TreeFrame", true);
034
035        // pack for display
036        pack();
037    }
038
039}