FormLayout.java |
1 import org.swixml.SwingEngine; 2 3 /** 4 * The Layout class shows the use of layout managers 5 * 6 * @author <a href="mailto:wolf@paulus.com">Wolf Paulus</a> 7 * @version $Revision: 1.1 $ 8 * 9 * @since swixml (#151) 10 */ 11public class FormLayout { 12 private static final String DESCRIPTOR = "xml/formlayout.xml"; 13 14 private FormLayout() throws Exception { 15 new SwingEngine( this ).render( FormLayout.DESCRIPTOR ).setVisible( true ); 16 } 17 18 public static void main( String[] args ) { 19 try { 20 new FormLayout(); 21 } catch (Exception e) { 22 System.err.println( e.getMessage() ); 23 } 24 } 25}
FormLayout.java |