title: How can I enable/disable my JTextField depending of the state of a JCheckBox?
body: <p>I have a Java check box next to a text field.</p>
  
  <p>When the check box gets selected, I want the text box to be enabled and when it isn't, I don't want it to be selected.  I tried an <code>if</code> statement with the <code>isSelected()</code> method, but it didn't do anything.</p>
  
  <p>How can I react to state changes of the JCheckBox?</p>