title: Disable enable JButton in Java
body: <p>I have a problem I'm trying to disable JButton with setEnabled(false) like this:</p>
  
  <pre><code>ButtonNewCustomer.setEnabled(false);
  </code></pre>
  
  <p>But this didn't work so then I imported the Applet packages, but still not working, then I discovered that I also needed to use extends Applet in the class, but the problem is that I'm already using extends for other things like this:</p>
  
  <pre><code>public class GUI4EX extends JFrame implements ActionListener {
  ...
  }
  </code></pre>
  
  <p>I have tried to add Applet, but this dont't work! Is there a way to solve this? Thanks!</p>
  
  <p>EDIT: It's working know! The problem was a misspelling of the buttonNewCustomer. The first letter 'b' was 'B'. Sorry! And thanks for the help! </p>