KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > XPanel


1
2 import org.swixml.SwingEngine;
3
4 import javax.swing.*;
5
6 /**
7  * This file contains proprietary information of CarlsbadCubes
8  * Copying or reproduction without prior written approval is prohibited.
9  * Copyright (c) 2002-2003
10  *
11  *
12  *
13  * Date: Feb 28, 2003
14  *
15  * @author <a HREF="mailto:wolf@paulus.com">Wolf Paulus</a>
16  * @version $Revision: 1.1 $
17  * @since
18  */

19
20 public class XPanel extends JPanel {
21
22   private SwingEngine swix = new SwingEngine( this );
23
24
25   public void setXml(String JavaDoc resource) {
26     try {
27       swix.insert( "xml/" + resource, this );
28     } catch (Exception JavaDoc e) {
29       System.err.println( e.getMessage() );
30     }
31   }
32 }
33
Popular Tags