JTable + Sorting specific field

前端 未结 2 617
名媛妹妹
名媛妹妹 2020-11-27 23:41

I have a JTable and have added sorting. Now the JTable has 5 columns and the 2nd column in a date field converted to DD/MM/YYYY and displayed in a JTextField in the cell.

2条回答
  •  庸人自扰
    2020-11-27 23:47

    You need to implement comparator that treats date string as Date rather simple String have a look here

提交回复
热议问题