warning: [unchecked] unchecked call to setCellValueFactory(Callback<CellDataFeatures<S,T>,ObservableValue<T>>) as a member of the raw type TableColumn column1.setCellValueFactory(new PropertyValueFactory<String, State>("name")); where S,T are type-variables:
S extends Object declared in class TableColumn
T extends Object declared in class TableColumn
Run Code Online (Sandbox Code Playgroud)
码:
column1.setCellValueFactory(new PropertyValueFactory<>("name"));
Run Code Online (Sandbox Code Playgroud)
warning: [unchecked] unchecked call to add(E) as a member of the raw type List
transitionTable.getColumns().add(column1);
where E is a type-variable:
E extends Object declared in interface List
Run Code Online (Sandbox Code Playgroud)
码:
transitionTable.getColumns().add(column1);
Run Code Online (Sandbox Code Playgroud)
warning: [unchecked] unchecked call to setAll(Collection<? extends E>) as a member of the …Run Code Online (Sandbox Code Playgroud) 无论我做什么 - 行的颜色保持不变,并具有灰色.这些更改仅适用于TableView处于焦点时.
我已经尝试过我在网上找到的所有其他建议,例如来自另一个线程的解决方案:
.table-row-cell:selected { -fx-background-color: red; }
似乎没有任何作用,并且当不在焦点时影响行.