Hi Anirvan, On 02.12.2014 06:33, Anirvan Sarkar wrote:
java.util.List doesn't support a swap operation but there is Collections.swap(List, int, int) <https://docs.oracle.com/javase/8/docs/api/java/util/Collections.html#swap-java.util.List-int-int->for that.
thanks for the pointer. Added a comment and a vote :)
Also there exists a JIRA RT-39128 <https://javafx-jira.kenai.com/browse/RT-39128> for getting swap support on ObservableList.
Please see my comment on the other reply. Thx. Werner