title: String or Integer variable Listener in java?
body: <p>First off, I am pretty new to java and I am just staring to get the hang of how static classes can interface with non-static classes and how to get a static class to update a textbox.  </p>
  
  <p>I keep searching for information, but I cannot find anything.  I need a variable listener.  here is something like what I am trying to do:</p>
  
  <pre><code>public class Class1{
  
  public static int X;
  public static void Process(){
     for (true){
          X = X + 1;
      }
  }
  </code></pre>
  
  <p>Then I have another class where I want to bind a variable to a textbox</p>
  
  <pre><code>Public class Class2{
    ****** On Class1.X.changeValue { Form.jLabel1.setText(Class1.X) }
  }
  </code></pre>
  
  <p>I hope I was clear on what I am trying to do.  I am trying to bind a label to a variable.</p>