Populating huge table in SWT/JFace RCP application

后端 未结 3 1089
北荒
北荒 2021-02-04 11:39

How would you go about displaying huge amount of rows in SWT table? Huge is something above 20K rows, 20 columns. Don\'t ask me why I need to show that much data, it\'s not the

3条回答
  •  长情又很酷
    2021-02-04 12:06

    You want to do lazy-loading on the table display. Basically, you keep all these objects offscreen in memory, then create only a handful of actual GUI table rows. As the user scrolls you re-render these rows with the objects at that scroll location.

    See this article (EDIT: oops I meant this article) for a JFace example.

提交回复
热议问题