title: Using Enabled Property on a JButton in netbeans
body: <p>I am trying to setup a button similar to the save button with the default CRUD database template (where the button only becomes active if a variable is true). I have looked at the code for the save button and worked out that i need:</p>
  
  <ol>
  <li>A variable to link it with (saveNeeded in their case)</li>
  <li>An action to run</li>
  </ol>
  
  <p>I have recreated both of these on another button but it never seams to get enabled. I have print statements on 2 other buttons i am using to set the variable i have my button linked to to true and false so i can see the value is changing.
  Is there some crucial step i am missing? this seems like it should be fairly straight forward.</p>
  
  <p>One other thing, if i manualy change the variable to true in my constructor to true and run the application it enables the button and false disables it so that part is working, just not the change.</p>
  
  <p>Any help would be appreciated as i have spent the last few hours trying and can not figure it out
  <br /><br />Thanks</p>