title: How to start different Timers
body: <p>I've build a application with JButtons for play and pause and 24 jtogglebuttons with this class:</p>
  
  <pre><code>public class TrackerButton extends JToggleButton {
  
  public static Timer timer;
  public static JToggleButton emptyToggleButton;
  public static int counter;
  public static HashMap&lt;JToggleButton, Timer&gt; buttonTimerMap = new HashMap&lt;&gt;();
  
  
  public TrackerButton(String identifier) {
      emptyToggleButton = new JToggleButton("");
      emptyToggleButton.setVisible(false);
      emptyToggleButton.setFont(buttonFont);
      emptyToggleButton.setSelected(false);
      emptyToggleButton.addActionListener(selectListener);
      emptyToggleButton.setName(identifier);
      counter = 0;
  
      timer = new Timer(600, new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
              counter++;
              TimeCalculation timeCalculator = new TimeCalculation();
              for(JToggleButton toggleButton : buttonTimerMap.keySet()){
                  if(toggleButton.isSelected()){
                      toggleButton.setText("&lt;html&gt;" + "&lt;br&gt;" + "Getrackte Zeit: " + timeCalculator.getCalculatedTime(counter) + "&lt;/html&gt;");
                      break;
                  }
              }
  
  
          }
      });
      buttonTimerMap.put(emptyToggleButton, timer);
  
  }
  </code></pre>
  
  <p>In the other class, I've the start function:</p>
  
  <pre><code>TrackerButton.buttonTimerMap.get(localJToggleButton).start();
  </code></pre>
  
  <p>The problem is, that I don't understand, when this "actionperformed" is performed. As I've understood, as soon as start() is used.</p>
  
  <p>my goal is, that I have 24 different jtoggle buttons and after selecting the button and click on the play button which uses start(), then it should rename the selected button all second, so that the user sees the timer</p>