title: How can I create another button, which resets the clicks I have done on the JButton?
body: <p>I´ve done a little clicking game and I wonder how can I create a new Button to reset the clicks I´ve already done.
  It should be on the right side of my JLabel.</p>
  <p>bubgudbhfbuhdufighbduifhbgudizfhbgudfbhgudhzbfguzdhgbfguzhbfuzsghbuozfsgbusbdfuosdhfuhsdufgh</p>
  <pre><code>public class Main implements ActionListener {
  
      private int count = 0;
      private JLabel label;
      private JFrame frame;
      private JPanel panel;
  
      public Main() {
          frame = new JFrame();
  
          JButton button = new JButton(&quot;Drücke mich&quot;);
          button.addActionListener(this);
          button.setFont(new Font(&quot;Arial&quot;, Font.BOLD, 100));
  
          label = new JLabel(&quot;Anzahl der Clicks: 0&quot;);
          label.setFont(new Font(&quot;Arial&quot;, Font.BOLD, 40));
  
          panel = new JPanel();
          panel.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));
          panel.setLayout(new GridLayout(0, 1));
          panel.add(button);
          panel.add(label);
  
          frame.add(panel, BorderLayout.CENTER);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setTitle(&quot;Click Spiel&quot;);
          frame.pack();
          frame.setVisible(true);
  
  
  
  
      }
      public static void main(String[] args) {
          new Main();
      }
  
      public void actionPerformed(ActionEvent e) {
          count++;
          label.setText(&quot;Anzahl der Clicks: &quot; + count);
  
      }
  }
  </code></pre>