title: Setting editable integer column in TableView in javafx-2.2
body: <p>I'm new to javafx and I trying to create editable integer column.</p>
  
  <p>I've read <a href="http://docs.oracle.com/javafx/2/api/" rel="nofollow">http://docs.oracle.com/javafx/2/api/</a> and <a href="http://docs.oracle.com/javafx/2/ui_controls/table-view.htm" rel="nofollow">http://docs.oracle.com/javafx/2/ui_controls/table-view.htm</a>
  and still have big question about working with integer properties.</p>
  
  <p>I've created a model that contains IntegerProperty. IntegerProperty is descendant of <em>ObservableValue[Number]</em>. TableColumn is invariant over field type, so I was forced to make this column be typed as <em>TableColumn[MyModel,Number]</em>. Than I need to create cellFactory that allows editing integer cell. <em>TextFieldTableCell(IntegerStringConverter)</em> is supposed to fulfill this aim but IntegerStringConverter is typed as <em>StringConverter[Integer]</em> not StringConverter[Number] and TextFieldTableCell is also invariant towards value type.</p>
  
  <p>So I get conflict:</p>
  
  <ul>
  <li>IntegerProperty require Number type</li>
  <li>StringConverter provide Integer type</li>
  <li>TableColumn is invariant and require both types to match</li>
  </ul>
  
  <p>How was TableColumn supposed to be used with this restrictions?</p>