Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created March 25, 2010 21:03
Show Gist options
  • Save knowuh/344115 to your computer and use it in GitHub Desktop.
Save knowuh/344115 to your computer and use it in GitHub Desktop.
package org.concord;
import java.awt.FlowLayout;
import org.nlogo.lite.InterfaceComponent;
public class TestNetLoogo41 {
public static void main(String[] argv) {
try
{
final javax.swing.JFrame frame = new javax.swing.JFrame();
frame.setLayout(new FlowLayout());
final InterfaceComponent comp_d = new InterfaceComponent(frame);
final InterfaceComponent comp_e = new InterfaceComponent(frame);
java.awt.EventQueue.invokeAndWait
( new Runnable()
{ public void run() {
frame.setSize(1000,800);
frame.add(comp_d);
frame.add(comp_e);
frame.setVisible(true);
try {
comp_d.open("resources/simple_d.nlogo");
comp_e.open("resources/simple_e.nlogo");
}
catch(Exception ex) {
ex.printStackTrace();
}
} } ) ;
}
catch(Exception ex) {
ex.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment