title: Can I create weak bindings in JavaFX?
body: <p>I have two bound <code>StringProperty</code> objects. I want the <code>Binding</code> to be weak, so that it becomes eligible for garbage collection as soon one of the bound objects has been GCed.</p>
  
  <p>See this example:</p>
  
  <pre><code>StringProperty obj1 = new StringProperty("Object1");
  StringProperty obj2 = new StringProperty("Object2"); 
  obj2.bind(obj1);
  obj2 = null;
  </code></pre>
  
  <p>How can I create a weak reference, so that the <code>Bindung</code> created in line 3 can be collected?</p>