I am making a program that shows cellular growth through an array. I have gotten it so when I press the start button, the array updates every 10 seconds in a while(true){} l
You want to run your simulation in a Thread ( Look for Runnable Interface ). Then you can pass messages to this Thread to pause, continue and stop.