public void startAnimation()
{
int[] values = ArrayUtil.randomIntArray(30, 300);
sorter = new SelectionSorter(values, this);
class AnimationRunnable implements Runnable
{
public void run()
{
try
{
sorter.sort();
}
catch (InterruptedException exception)
{
}
}
}
Runnable r = new AnimationRunnable();
Thread t = new Thread(r);
t.start();
}