Here is the following code, which I would like to use:
private int counter = 1000;
private int delay = 1000;
private Timer timer;
ActionListener action = new ActionListener()
{
@Override
public void actionPerformed(ActionEvent event)
{
jLabel19.setText("452");
}
};
timer = new Timer(delay, action);
timer.setInitialDelay(0);
timer.start();
It should pause the running, but it makes seemly nothing.