View Javadoc

1   /*
2    * @(#) WaitingFrame.java Nov 5, 2003
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the 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 2003 <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/gpl.html">General Public
25   * License (GPL) </a>, no warranty <br>
26   * 
27   * @version 1.0 18.10.2003 <br>
28   * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
29   *         Jacobs </a>
30   */
31  public class WaitingFrame extends JFrame
32  {
33  	/***
34  	 * constructs a new WaitingFrame
35  	 */
36  	public WaitingFrame()
37  	{
38  		super("One moment please...");
39  		TablePanel panel = new TablePanel(1, 1);
40  		panel.setPreferredSize(new Dimension(300, 60));
41  		panel.setCell(new ContentPane(), 0, 0);
42  		this.setContentPane(panel);
43  		this.setLocation(300, 300);
44  		this.pack();
45  		this.setVisible(true);
46  	}
47  
48  	/***
49  	 * A ContentPane
50  	 */
51  	private class ContentPane extends JTextField
52  	{
53  		/***
54  		 * constructs a new ContentPane
55  		 */
56  		public ContentPane()
57  		{
58  			super("One moment please....");
59  			this.setEditable(false);
60  		}
61  	}
62  }