javafxtreetableview

JavaFX TreeTableView bigger show/hide columns button


Is there a way to make the Show/Hide columns button in the TreeTableView bigger?


Solution

  • Experiment with the following CSS:

    .tree-table-view > .column-header-background > .show-hide-columns-button {
        -fx-font-size: 24pt ;
    }
    
    
    .tree-table-view > .column-header-background > .show-hide-columns-button .context-menu {
        -fx-font-size: null;
    }
    
    .tree-table-view .column-header, 
    .tree-table-view .filler, 
    .tree-table-view > .column-header-background > .show-hide-columns-button, 
    .tree-table-view:constrained-resize .filler {
    
        -fx-size: 3em ;
    
    }