How to check if the TableView is empty (JavaFX)? I need to check if the table is empty to fulfill the condition.

    1 answer 1

    Here is an option

    // предположим, что она чем-то проинициализирована tableView = ...; if(tableView.getItems().isEmpty()) { // таблица пустая } 
    • Thank you, all robs) - Raltahook
    • do not forget to accept the answer. - Mikhail Vaysman