Hi can someone show to in this code how, to put right Types. I am tryed many ways but.. So how to put right types in the ObservablelIst and TableColumn. I meen <S,T>
**ObservableList data = FXCollections.observableArrayList();**
List<String> newColumnsString = adminHallintaController.admincomboValidator(tablenameid);
**var col = new TableColumn**(newColumnsString.get(i));
**col.setCellValueFactory**((Callback<CellDataFeatures<**ObservableList,** String>, ObservableValue<String>>) param -> new SimpleStringProperty(param.getValue().get(j).toString()));
hallintaTable.getColumns().addAll(col);
}
while(rsHaku.next()){
**ObservableList<String> row** = FXCollections.observableArrayList(); --Here
for(int i=1 ; i<=rsHaku.getMetaData().getColumnCount(); i++){
row.add(rsHaku.getString(i));
}
**data.add(row);**
}
private static void addEditButtonToTable(TableView<Object> hallintaTable, String tablenameid) {
**TableColumn col_editaction = new TableColumn<>("Muokkaa");
TableColumn col_delaction = new TableColumn<>("Poista");**
hallintaTable.getColumns().addAll(col_editaction, col_delaction);
**col_editaction.setCellValueFactory**((Callback<CellDataFeatures<Record, Boolean>, ObservableValue<Boolean>>) p -> new SimpleBooleanProperty(p.getValue() != null));
**col_delaction.setCellValueFactory**((Callback<CellDataFeatures<Record, Boolean>, ObservableValue<Boolean>>) p -> new SimpleBooleanProperty(p.getValue() != null));
//Adding the Button to the cell
**col_editaction.setCellFactory**((Callback<TableColumn<Record, Boolean>, TableCell<Record, Boolean>>) p -> new editButtonCell(hallintaTable, tablenameid));
**col_delaction.setCellFactory**((Callback<TableColumn<Record, Boolean>, TableCell<Record, Boolean>>) p -> new delButtonCell(hallintaTable, tablenameid));