Filtering data to display from database in javafx

前端 未结 2 1798
日久生厌
日久生厌 2021-01-15 02:35

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.

<
2条回答
  •  温柔的废话
    2021-01-15 03:05

    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 !

提交回复
热议问题