001package jmri.jmrit.throttle.implementation;
002
003import javax.swing.JInternalFrame;
004import javax.swing.JPanel;
005import javax.swing.WindowConstants;
006
007/**
008 * A small class extending JInternalFrame. 
009 * Used to host the various throttle panels in a throttle frame
010 * 
011 * <hr>
012 * This file is part of JMRI.
013 * <p>
014 * JMRI is free software; you can redistribute it and/or modify it under the
015 * terms of version 2 of the GNU General Public License as published by the Free
016 * Software Foundation. See the "COPYING" file for a copy of this license.
017 * <p>
018 * JMRI is distributed in the hope that it will be useful, but WITHOUT ANY
019 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
020 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
021 *
022 * @author Lionel Jeanson Copyright 2026
023 *
024 */
025
026public class ThrottleJInternalFrameSubControl extends JInternalFrame  {
027
028    public ThrottleJInternalFrameSubControl(String title, JPanel content, boolean visible) {
029        super(title, true, true, true, true);           
030        setContentPane(content);
031        setVisible(true);
032        setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
033    }
034    
035}