When I double click on the TableView splitter in the column header, the button in the column disappears

When I double click on the TableView splitter in the column header, the button in the column disappears. Is there any event that fires when this part is double clicked and how can I stop it?

+3


source to share


1 answer


Works for me:



    TableColumn<AuxTable, AuxTableColString> col = new TableColumn<>();
    col.setSortable(false);
    setCallbackString(col);
    setHeader(text, col);
    //Header not exists yet
    Platform.runLater(() -> {
        getTableHeader().setOnMouseClicked(event -> {
            if (event.getClickCount() > 1) {
                //forces render
                col.getTableView().refresh();
            }
        });
    });

      

+1


source







All Articles