我是新手JavaFX
,想知道如何设置和获取JavaFX
Table的单元格值Swing
JTable
。即表中setValueAt()
&getValueAt
的替代方案。Swing
JTable
JavaFX
//would like to get the index of column by Name
int index_RunnableQueueItem = tableQueue.getColumns().indexOf("RunnableQueueItem");
//would like to get the selected row
int row = tableQueue.getSelectionModel().getSelectedIndex();
if (index_RunnableQueueItem != -1 && row != -1) {
// would like to get the value at index of row and column.
//Update that value and set back to cell.
}