tableview - JavaFX: TableViewCol set editable does not allow editting -


i have editable table , i've cloned code pane , not let me edit it.

  <tableview fx:id="queuetable" layoutx="5.0" layouty="388.0" prefheight="200.0" prefwidth="406.0">     <columns>       <tablecolumn fx:id="materialcol" editable="false" prefwidth="224.0" text="material">             <cellfactory>                 <textfieldtablecell fx:factory="fortablecolumn" />             </cellfactory>                 <cellvaluefactory>             <propertyvaluefactory property="symbol" />                 </cellvaluefactory>       </tablecolumn>       <tablecolumn fx:id="sourcecol" editable="false" prefwidth="111.0" text="source">             <cellfactory>                 <textfieldtablecell fx:factory="fortablecolumn" />             </cellfactory>                             <cellvaluefactory>                 <propertyvaluefactory property="weight" />             </cellvaluefactory>         </tablecolumn>       <tablecolumn fx:id="indexcol" prefwidth="70.0" text="index">             <cellfactory>               <textfieldtablecell fx:factory="fortablecolumn" />             </cellfactory>                             <cellvaluefactory>               <propertyvaluefactory property="atom" />             </cellvaluefactory>       </tablecolumn>        </columns>   </tableview> 

when double clicking on table cell, nothing happens indicate i've done anything, , i'm not sure how diagnose this, because table code works elsewhere in same program. difference here being other table editable, , table only column should be.

the intent allow "index" value changed user, , rest of information static.

tableview not editable default, need

 <tableview fx:id="queuetable" editable="true" layoutx="5.0" layouty="388.0" prefheight="200.0" prefwidth="406.0"> 

with else is, make indexcol editable , other 2 columns not editable.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -