KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > gumby > widgets > TablePanel


1 package org.sapia.gumby.widgets;
2
3 import java.awt.GridBagLayout JavaDoc;
4
5 import javax.swing.JPanel JavaDoc;
6
7 /**
8  * @author Yanick Duchesne
9  *
10  * <dl>
11  * <dt><b>Copyright: </b>
12  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
13  * Source Software </a>. All Rights Reserved.</dd>
14  * </dt>
15  * <dt><b>License: </b>
16  * <dd>Read the license.txt file of the jar or visit the <a
17  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
18  * OSS web site</dd>
19  * </dt>
20  * </dl>
21  */

22 public class TablePanel extends JPanel JavaDoc {
23
24   static final long serialVersionUID = 1L;
25
26   private int _rowCount = 0;
27
28   public TablePanel() {
29     super(new GridBagLayout JavaDoc());
30   }
31
32   public Tr createTr() {
33     return new Tr(this, _rowCount++);
34   }
35
36 }
37
Popular Tags