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
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 public static void main( String[] args ) throws Exception {
35 new MacTest();
36 }
37
38
41public static SwingEngine getSwix() {
42 return swix;
44}
45
46
47}