title: how to make a OK button in netbeans empty
body: <p>I am entering a value into the OK button (Netbeans Jframe) by using this method:</p>
  
  <pre><code>    public void change (java.awt.event.ActionEvent evt) {
  if (turn == true) {
      JButton button = (JButton) evt.getSource();
      button.setText("X");
      turn = false;
      button.setEnabled(false);
  }
      else {
      JButton button = (JButton) evt.getSource();
      button.setText("O");
      turn = true;
      button.setEnabled(false);
  }
  </code></pre>
  
  <p>I then later want to have a reset button that returns the value inside the OK button to nothing (so it is blank) i currently have the following but it does not work.</p>
  
  <p>public void reset (java.awt.event.ActionEvent evt) {</p>
  
  <pre><code>if (reset == true)
  {
  
      JButton button = (JButton) evt.getSource();
      button.setEnabled(true);
      button.setText("");
      turn = false;
  } 
  </code></pre>
  
  <p>what would be my code?</p>