Created
March 25, 2010 21:03
-
-
Save knowuh/344115 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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