There is no such function in javafx. Out of curiosity, I created a custom view which overlays a duplicate of the first row data in a pane where the first row should be if the scroll is not at 0. It is in the attached file if you want to try it.
It is far from a finished customview, it only currently supports text and numbers (no nodes) although it should be fairly straight forward to duplicate or create an image from nodes if that is required and add it to the overlay pane.
It uses a fixed row height and multiple listeners to track the scroll and changes to the data.
Thanks for the reply,
The example works, but not expected. When sorting, the line moves to the bottom.
I have an idea of how to do otherwise, but I have not had time to try.
If you sort the tableview, it will presumably have a new first row with different values. That will then appear at the top. If you don't want to include the first row in a sort, you will have to write a sort routine to do that.