1 
2 import org.swixml.SwingEngine;
3 
4 import javax.swing.*;
5 import java.awt.event.ActionEvent;
6 import java.awt.event.WindowEvent;
7 import java.awt.event.WindowAdapter;
8 import java.io.IOException;
9 
10import com.apple.eio.FileManager;
11
12/**
13 * The HelloMac class shows a couple of the Mac specifics exposed
14 * <code>HeeloMac</code> renders the GUI, which is described in hellomac.xml
15 *
16 * @author <a href="mailto:[email protected]">Wolf Paulus</a>
17 * @version $Revision: 1.1 $
18 *
19 * @since swixml 1.1
20 */
21public class MacTest  extends WindowAdapter {
22  private static SwingEngine swix;
23
24  private MacTest() throws Exception {
25    swix= new SwingEngine( this );
26    swix.render( "xml/mactester.xml" );    
27    swix.getRootComponent().setVisible( true );
28  }
29
30  
31  //
32  //  Make the class bootable
33  //
34  public static void main( String[] args ) throws Exception {
35    new MacTest();
36  }
37
38/**
39 * @return
40 */
41public static SwingEngine getSwix() {
42    // TODO Auto-generated method stub
43    return swix;
44}
45
46
47}