package nl.tudelft.simulation.logger.gui; import java.util.logging.Logger; import javax.swing.JFrame; import javax.swing.WindowConstants; /** * The LoggerFrame
* (c) copyright 2002-2005 Delft University of Technology , the * Netherlands.
* See for project information www.simulation.tudelft.nl
* License of use: Lesser General Public License (LGPL) , no * warranty. * @version $Revision: 1.2 $ $Date: 2010/08/10 11:39:18 $ * @author Peter Jacobs, Niels Lang, Alexander Verbraeck */ public class LoggerFrame extends JFrame { /** The default serial version UID for serializable classes. */ private static final long serialVersionUID = 1L; /** the Logger. */ private Logger logger = null; /** * constructs a new LoggerFrame. * @param logger the logger to see */ public LoggerFrame(final Logger logger) { super("Logger: " + logger.getName()); this.logger = logger; this.initialize(); this.pack(); this.setVisible(true); this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); } /** * initializes the Loggerframe */ private void initialize() { LogPanel logPanel = new LogPanel(this.logger); this.setContentPane(logPanel); } /** {@inheritDoc} */ @Override public void dispose() { LogPanel content = (LogPanel) this.getContentPane(); content.finalize(); } }