Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To verify the visibility of a particular column in a TableView using JavaFX, you can use the isVisible() method of the TableColumn class. This method returns a boolean value indicating whether the column is currently visible or not.

Here's an example code snippet for checking the visibility of a column named "name":

TableColumn<User, String> nameCol = new TableColumn<>("Name");
// ... set up the column with data and attributes ...

boolean isNameColVisible = nameCol.isVisible();

In this example, the "nameCol" variable represents the specific column you want to verify, and the "isNameColVisible" variable will hold the boolean value indicating its visibility. You can then use this value for further logic or display purposes.