I would like to display only certain information in table view such as only "male" people in a database. I'm only at using javafx. Thanks for your help in advance.
This is my current table
I would like to filter the table so that only rows with "order status : PAID" are displayed in the table.
If you are using Javafx 2.0+, you have to write your custom table view filter or you can use javafx_filterable_columns. For custom table filters, you can follow this link, which provides a very nice approach to writing filters
http://code.makery.ch/blog/javafx-8-tableview-sorting-filtering/
In Javafx8, may be the facility is inbuilt. But, I am not sure, since I have never used it personally !
If you can use java 8 you can use the built in FilteredList and predicates. Here's something I wrote to test regex filtering. I modified it a bit to be more like your example and use javafx 2.2 if required. Just change some of the commented lines to use java 8.
todo, there's supposedly a way to bind the predicateProperty, but I can't figure that out.
Edit: If you want a binding, instead of the handler for ActionEvent, do something like