KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > GridBag


1
2 import org.swixml.SwingEngine;
3
4
5 /**
6  * The GridBag class shows how to do a simple GridBag layout
7  *
8  * @author <a HREF="mailto:wolf@paulus.com">Wolf Paulus</a>
9  * @version $Revision: 1.1 $
10  *
11  * @since swixml 0.5
12  */

13 public class GridBag extends SwingEngine {
14   /** Default ctor for a SwingEngine. */
15
16   private GridBag() {
17     try {
18       render( "xml/gridbag.xml" ).setVisible( true );
19     } catch (Exception JavaDoc e) {
20       e.printStackTrace();
21     }
22   }
23
24   public static void main(String JavaDoc[] args) {
25     new GridBag();
26   }
27 }
Popular Tags