Form.java |
1 2 import org.swixml.SwingEngine; 3 4 5 /** 6 * The Form class shows how to do a simple JGoodies FormLayout 7 */ 8 public class Form extends SwingEngine { 9 /** Default ctor for a SwingEngine. */ 10 11 private Form() { 12 try { 13 render( "xml/form.xml" ).setVisible( true ); 14 } catch (Exception e) { 15 e.printStackTrace(); 16 } 17 } 18 19 public static void main(String[] args) { 20 new Form(); 21 } 22}
Form.java |