blob: 01b829fc32c9c20b4f07fc30f4bbf9c136919904 [file] [log] [blame]
/*
* Created on Apr 19, 2004
*
*/
package groovy.swt;
import groovy.lang.GroovyObject;
/**
* @author <a href:ckl at dacelo.nl">Christiaan ten Klooster </a> $Id$
*/
public class RunAwtSwtDemo {
public static void main(String[] args) throws Exception {
RunDemoBrowser demo = new RunDemoBrowser();
GroovyObject object = demo.compile("src/examples/groovy/swt/AwtSwtDemo.groovy");
object.invokeMethod("run", null);
}
// public static void main(String[] args) {
// Display display = new Display();
// Shell shell = new Shell(display);
// Composite locationComp = new Composite(shell, SWT.DEFAULT);
// shell.setLayout(new FillLayout());
//
// java.awt.Frame locationFrame = SWT_AWT.new_Frame(locationComp);
//
// locationFrame.add(new JTree());
//
// shell.open();
// while (!shell.isDisposed()) {
// if (!display.readAndDispatch()) display.sleep();
// }
// display.dispose();
//
// }
}