I need to select a row in the table and then "block" the selection and editing of other rows to a specific action. How can this be implemented?
1 answer
As an option: tableView.setDisable(true);
- It's cool, thanks! There is a nuance, is it possible to make the "table lock" a bit more transparent? Table entries are not clearly visible - Vladislav Solopov
- @VladislavSolopov You can use
css:.table-view:disabled{-fx-opacity:1,0;}- Andrey M - No problem, you need to work on styles for the disable state here: .table-view: disabled {-fx-opacity: 1.0;}, or without the css file: table-vew.setDisable (true); table-vew.setStyle ("- fx-opacity: 1.0;"); - Zwezh
|