import java.awt.*;
import javax.swing.*;
import
java.awt.event.*;
public class TestVisual
{
public static void main(String[] args)
{
JFrame jf = new JFrame("Test Visualization");
Visualization v = new
Visualization(10,30);
for(int
i=0; i<3; i++)
{
int[] input = {0,i*2,i+1};
if(!v.updateVisual(input))
System.exit(0);
}
jf.addWindowListener(new WindowAdapter()
{
public void
windowClosing(WindowEvent e)
{
System.exit(0);
}
});
jf.getContentPane().add(v);
jf.setSize(550,550);
jf.pack();
jf.setVisible(true);
}
}