The answer to the following question could not be found: some JFrame is created inside which there are several panels, an ActionListener is created:
public class PushingListener implements ActionListener{ public void actionPerformed (ActionEvent e) { if (e.getActionCommand().equals("Начать бой")){ Graphics.setButton("Продолжить бой", false); battleTank(); } } } The button and all fields are updated only after the battleTank function has fully completed. Is it possible to somehow force the updated fields to be updated after each tick inside the battleTank () program?