title: Java equivalent to C# TextBox TextChanged event
body: <p>in C# there is an event for textboxes as follows </p>
  
  <pre><code>private void fooText_TextChanged(object sender, EventArgs e)
  {
      //do something 
  }
  </code></pre>
  
  <p>the code in the fooText_TextChanged is fired once the text within the textbox is altered.</p>
  
  <p>What is the java equivalent to this? Or how can something similar to this be achieved in java?</p>
  
  <p>Thanks for any feedback/help/advice.</p>