how to javafx hide background header of a tableview?

前端 未结 3 1671
遥遥无期
遥遥无期 2020-12-16 06:32

I\'m trying to develop auto complete text, which shows a dropdown of suggestions in tableview popup, and I\'m having an issue of how can I hide the whole header-column of ta

3条回答
  •  长情又很酷
    2020-12-16 07:35

    If you don't want to add additional .css file you may use your existing css:

    .hide-header .column-header-background { 
        visibility: hidden; -fx-padding: -1em;
    }
    

    Where .hide-header is random name which you should add to your java code:

    table.getStyleClass().add("hide-header");
    

提交回复
热议问题