Turn your for loop code into a class and use it as an ActionListener for the button. Every time the button gets pressed run one iteration. Variables which you want to keep persistent between...