| XInclude.java |
1
2 import org.swixml.SwingEngine;
3
4 import java.awt.event.WindowAdapter;
5
6 /**
7 * The XInclude class shows in simple way how to use xml includes.
8 * <code>XInclude</code> extends the WindowAdapter and uses a SwingEngine to renders the GUI.
9 *
10 * @author <a href="mailto:[email protected]">Wolf Paulus</a>
11 * @version $Revision: 1.1 $
12 *
13 * @since swixml 0.95
14 */
15public class XInclude extends WindowAdapter {
16 private SwingEngine swix = new SwingEngine( this );
17
18
19 private XInclude() {
20 try {
21 swix.render( "xml/xinclude.xml" ).setVisible( true );
22 } catch (Exception e) {
23 e.printStackTrace();
24 }
25 }
26
27 public static void main( String[] args ) {
28 new XInclude();
29 }
30}
31
32| XInclude.java |