How can i sort java JTable with an empty Row and force the Empty row always be last?

后端 未结 5 855
心在旅途
心在旅途 2020-12-18 16:49

I am using JTable with an empty row at the bottom of the table in order to give the ability of adding new line to the table.

After insert or writing data in the empt

5条回答
  •  隐瞒了意图╮
    2020-12-18 17:07

    The DefaultRowSorter is definitely flawed.

    The only option is to create your own RowSorter based on the DefaultRowsorter and correct the problem.

提交回复
热议问题