我可以从JMouseClicked运行TableRowSorter以及他使用的排序算法是什么

时间:2012-11-07 18:11:30

标签: java sorting jtable

首先, 我想知道是否可以使用JMouseClicking“通过单击按钮”运行TableRowSorter'或getRowSorter'???

第二个, 什么是'TableRowSorter'中使用的排序算法? ......是QuickSort还是HeapSort?

非常感谢

1 个答案:

答案 0 :(得分:0)

您可以在oracle文档中找到一些有用的提示(如何使用表)

http://docs.oracle.com/javase/tutorial/uiswing/components/table.html

http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TableSorterDemoProject/src/components/TableSorter.java

上面的

可以解决你问题的某些部分。