FXML から TableView の SelectionModel を設定したいのですが、これを行う方法が見つかりません。私はすでに次のことを試しました:
1.TableViewのプロパティとして設定するだけです:
<TableView selectionModel="MULTIPLE">
2. ListView と同じようにプロパティを設定します (参照: https://community.oracle.com/thread/2315611?start=0&tstart=0 ):
<TableView multiSelect="true">
3.別の方法でプロパティを設定します。
<TableView>
<selectionModel>
<TableView fx:constant="MULTIPLE" />
</selectionModel>
</TableView>
4. 別のバージョン:
<TableView>
<selectionModel>
<SelectionModel fx:constant="MULTIPLE" />
</selectionModel>
</TableView>
5.選択モデル(異なる):
<TableView>
<selectionModel>
<SelectionModel selectionModel="MULTIPLE" />
</selectionModel>
</TableView>
これはどれも機能しません。
どんな助けでも大歓迎です!