Re: Let's discuss JDK-8338952

2025-05-20 Thread Andy Goryachev
k.org Subject: Re: Let's discuss JDK-8338952 Andy, I think this is a good solution because it provides everything needed for sorting. Moreover, it complies with the generics of TableColumn. For example, var column = new TableColumn("First Name"); SortPolicy sortPolicy = ... column.s

Re: Let's discuss JDK-8338952

2025-05-19 Thread PavelTurk
Andy, I think this is a good solution because it provides everything needed for sorting. Moreover, it complies with the generics of TableColumn. For example, var column = new TableColumn("First Name"); SortPolicy sortPolicy = ... column.setSortPolicy(sortPolicy); But don't you think the VALUE

Re: Let's discuss JDK-8338952

2025-05-19 Thread Andy Goryachev
One possible solution would be to deprecate the comparator property (not for removal, keep it for backward compatibility), and add a new property 'sortPolicy' which will use an interface that can be evolved, as opposed to a naive callback. public interface SortPolicy { public int compare(IT