1 2 import org.swixml.SwingEngine;3 4 5 /**6 * The GridBag class shows how to do a simple GridBag layout7 *8 * @author <a HREF="mailto:wolf@paulus.com">Wolf Paulus</a>9 * @version $Revision: 1.1 $10 *11 * @since swixml 0.512 */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 e) {20 e.printStackTrace();21 }22 }23 24 public static void main(String [] args) {25 new GridBag();26 }27 }