KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Layout


1
2 import org.swixml.SwingEngine;
3
4 /**
5  * The Layout class shows the use of layout managers
6  *
7  * @author <a HREF="mailto:wolf@paulus.com">Wolf Paulus</a>
8  * @version $Revision: 1.1 $
9  *
10  * @since swixml (#136)
11  */

12 public class Layout {
13   private static final String JavaDoc DESCRIPTOR = "xml/layout.xml";
14
15   private Layout() throws Exception JavaDoc {
16     new SwingEngine( this ).render( Layout.DESCRIPTOR ).setVisible( true );
17   }
18
19   public static void main( String JavaDoc[] args ) {
20     try {
21       new Layout();
22     } catch (Exception JavaDoc e) {
23       System.err.println( e.getMessage() );
24     }
25   }
26 }
27
Popular Tags