package nl.tudelft.simulation.dsol.gui.swing; import java.awt.Frame; import javax.swing.JFrame; /** *
* Copyright (c) 2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. * The MEDLABS project (Modeling Epidemic Disease with Large-scale Agent-Based Simulation) is aimed at providing policy * analysis tools to predict and help contain the spread of epidemics. It makes use of the DSOL simulation engine and * the agent-based modeling formalism. See for project information * www.simulation.tudelft.nl. The project is a co-operation between TU Delft, Systems Engineering and Simulation * Department (Netherlands) and NUDT, Simulation Engineering Department (China). This software is licensed under the BSD * license. See license.txt in the main project. * @version May 4, 2014
* @author Mingxin Zhang * @author Alexander Verbraeck */ public class DSOLApplication extends JFrame { /** */ private static final long serialVersionUID = 1L; /** * Constructor for DSOLApplication. * @param title the title in the top bar * @param panel the panel to put in the frame */ public DSOLApplication(final String title, final DSOLPanel panel) { super(title); this.setContentPane(panel); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.pack(); this.setExtendedState(Frame.MAXIMIZED_BOTH); this.setVisible(true); } }