how to solve javafx table-view focused problem?

2019-08-17 05:52发布

问题:

I have a problem in javafx table view focused problem. This is my table view when unfocused as shown in figure.

The table view when focused:

But when i am outside of the table view and click show-hide-column button the table does not get focused

how to solve this problem using css if possible. or any other tricks....???