Very big JTable, RowFilter and extra load

假如想象 提交于 2019-12-02 07:07:35

no component in any of programing languages aren't designated to displaying too largiest matrix of data on the screen, then you have two choises

  1. faster way is let's this job for SQL engine, that designated for searching and filtering rows in hugest Database table

  2. slower way is hold these data in HashMap and there apply Comparator, and JTable would be display only result from this Comparator

trashgod

Expanding on @mKorbel's second point, a TableModel for a very large data set may contain a List<Record>, as suggested here. The list may be sorted using a suitable Comparator and dynamically partitioned using the subList() method. At any one time, the corresponding JTable can only see one such partition, and separate controls will be required to change partitions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!