Do you know of a sophisticated spread sheet like component for Swing

眉间皱痕 提交于 2019-11-28 10:56:29

问题


I need to write a data exploration tool that displays large amounts of data in a spreadsheet format.

Salient problem features:

  1. Large number of rows -- typically .5 to 1 million
  2. 30-50 columns
  3. Need to be able to sort on columns
  4. Rapidly apply filters -- say hide all rows that have have foobar in them
  5. Need to be able to lock rows/cols

Thanks.


回答1:


The real problem is elucidating the poorly defined row count requirement: typically 0.5 to 1 million. Human beings cannot meaningfully browse hundreds of thousand of rows. Instead, consider some domain-compatible way to select a subset suitable for manipulation according to the other requirements 2-5.

Because its renderers implement the flyweight pattern, JTable is already quite efficient, although optimizations are possible. If the data is hierarchical in nature, org.netbeans.swing.outline.Outline, a JTable subclass examined here, is an appealing alternative.



来源:https://stackoverflow.com/questions/7663990/do-you-know-of-a-sophisticated-spread-sheet-like-component-for-swing

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