001package jmri.jmrix.ecos.swing.preferences;
002
003import javax.swing.BoxLayout;
004import javax.swing.JButton;
005import jmri.jmrix.ecos.EcosSystemConnectionMemo;
006
007/**
008 * Frame for ECoS preferences
009 *
010 * @author Kevin Dickerson Copyright (C) 2009
011 */
012public class PreferencesFrame extends jmri.util.JmriJFrame {
013
014    public PreferencesFrame() {
015        super();
016    }
017
018    JButton sendButton;
019    PreferencesPane preferencesPane;
020
021    public void initComponents(EcosSystemConnectionMemo adaptermemo) {
022        // the following code sets the frame's initial state
023
024        preferencesPane = new PreferencesPane(adaptermemo.getPreferenceManager());
025
026        setTitle(Bundle.getMessage("MenuItemECoSPrefs"));
027        getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
028
029        getContentPane().add(preferencesPane);
030
031        addHelpMenu("package.jmri.jmrix.ecos.swing.preferencesframe.PreferencesFrame", true);
032
033        pack();
034    }
035
036}