View Javadoc

    1   /*
    2    * @(#) WaitingFrame.java Nov 5, 2003
    3    *
    4    * Copyright (c) 2002-2005 Delft University of Technology Jaffalaan 5, 2628 BX
    5    * Delft, the Netherlands. All rights reserved.
    6    *
    7    * This software is proprietary information of Delft University of Technology
    8    * The code is published under the Lesser General Public License
    9    */
    10  package nl.tudelft.simulation.dsol.gui.panels;
    11
    12  import java.awt.Dimension;
    13
    14  import javax.swing.JFrame;
    15  import javax.swing.JTextField;
    16
    17
    18  /***
    19   * The Waiting Frame <br>
    20   * (c) copyright 2002-2005 <a href="http://www.simulation.tudelft.nl">Delft
    21   * University of Technology </a>, the Netherlands. <br>
    22   * See for project information <a
    23   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
    24   * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
    25   * General Public License (LGPL) </a>, no warranty.
    26   *
    27   * @version $Revision: 1.4 $ $Date: 2005/01/13 16:28:55 $
    28   * @author <a href="http://www.tbm.tudelft.nl/webstaf/peterja">Peter Jacobs </a>
    29   */
    30  public class WaitingFrame extends JFrame
    31  {
    32  	/***
    33  	 * constructs a new WaitingFrame
    34  	 */
    35  	public WaitingFrame()
    36  	{
    37  		super("One moment please...");
    38  		TablePanel panel = new TablePanel(1, 1);
    39  		panel.setPreferredSize(new Dimension(300, 60));
    40  		panel.setCell(new ContentPane(), 0, 0);
    41  		this.setContentPane(panel);
    42  		this.setLocation(300, 300);
    43  		this.pack();
    44  		this.setVisible(true);
    45  	}
    46
    47  	/***
    48  	 * A ContentPane
    49  	 */
    50  	private class ContentPane extends JTextField
    51  	{
    52  		/***
    53  		 * constructs a new ContentPane
    54  		 */
    55  		public ContentPane()
    56  		{
    57  			super("One moment please....");
    58  			this.setEditable(false);
    59  		}
    60  	}
    61  }