Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sort TreeTableView on one of the columns by default without clicking the header column

User_CDX3FMar 14 2014 — edited Mar 17 2014

I am using TreeTableView (FX 8). I need to sort a date column by default in descending order when the TreeTableView is rendered. How to do this. I defined the comparator for the required column. Once the root is set, I called treetableview.sort() method. But it didnt sort it by default. Can you provide me with the code to do the same.

Thanks.

This post has been answered by James_D on Mar 15 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2014
Added on Mar 14 2014
2 comments
477 views