001package jmri.jmrit.powerpanel;
002
003import jmri.util.JmriJFrame;
004
005/**
006 * Frame for controlling layout power via a PowerManager.
007 *
008 * @author Bob Jacobsen Copyright (C) 2001
009 */
010public class PowerPanelFrame extends JmriJFrame {
011
012    // GUI member declarations
013    PowerPane pane = new PowerPane();
014
015    public PowerPanelFrame() {
016        super(Bundle.getMessage("TitlePowerPanel"));
017        // general GUI config
018
019        // install items in GUI
020        getContentPane().add(pane);
021
022        // add help menu to window
023        addHelpMenu("package.jmri.jmrit.powerpanel.PowerPanelFrame", true);
024
025        pack();
026    }
027
028    @Override
029    public void dispose() {
030        pane.dispose();
031        super.dispose();
032    }
033}