KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > XInclude


1
2 import org.swixml.SwingEngine;
3
4 import java.awt.event.WindowAdapter JavaDoc;
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:wolf@paulus.com">Wolf Paulus</a>
11  * @version $Revision: 1.1 $
12  *
13  * @since swixml 0.95
14  */

15 public class XInclude extends WindowAdapter JavaDoc {
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 JavaDoc e) {
23       e.printStackTrace();
24     }
25   }
26
27   public static void main( String JavaDoc[] args ) {
28     new XInclude();
29   }
30 }
31
32
Popular Tags