title: Cannot bind text field to selected item in JTable in NetBeans
body: <p>I am trying to use NetBeans to bind a JTextField to the selected element of a JTable.</p>
  
  <p>The JTable gets its data from an AbstractTableModel subclass which returns Cow objects.  At present, each Cow object is displayed as a String through its toString method.</p>
  
  <p>I am trying to bind the <b>text</b> property of the JTextField to the <b>name</b> property of the Cow object which is selected in the JTable.</p>
  
  <p>I bound the text property of the JTextField in NetBeans to:</p>
  
  <p><code>flowTable[${selectedElement.name}]</code></p>
  
  <p>This produces the following line of generated code:</p>
  
  <pre><code>org.jdesktop.beansbinding.Binding binding = 
    org.jdesktop.beansbinding.Bindings.createAutoBinding(
      org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, 
      cowTable, 
      org.jdesktop.beansbinding.ELProperty.create("${selectedElement.name}"), 
      cowNameTextField, 
      org.jdesktop.beansbinding.BeanProperty.create("text"));</code></pre>
  
  <p>The bound value of the text field is always null.</p>
  
  <p>What am I doing wrong?</p>