package tutorial;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class RunViz{
public static void main (String args[]){
BuildViz thisViz = new BuildViz();
//Set up the JFrame
JFrame MyFrame = new JFrame("Testing");
MyFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MyFrame.add(thisViz.MyDisplay);
JPanel panel = new JPanel();
thisViz.MyViz.run("layout");
//add a Mouse listener to the display. We're using the
//VizMouseListener class which just extends the MouseAdapter
//thisViz.MyDisplay.addMouseListener(new VizMouseListener(thisViz.MyGraph, thisViz.MyViz));
thisViz.MyDisplay.addControlListener(new VizControlListener(thisViz.MyViz, thisViz.MyGraph));
MyFrame.pack();
MyFrame.setVisible(true);
}
}