Swt table getData() to string list

南楼画角 提交于 2019-12-08 13:43:22

问题


I have populated swt Table and it displays it OK, but now I want to get data from swt Table to

Is there any solution to get data to array or list from table?


回答1:


Try

TableItem[] tableItems = table.getItems();

to get the the value of the first row at the 2nd column

tableItems[0].getText(1)

You might want to look into JFace TableViewer to make this easier.



来源:https://stackoverflow.com/questions/6973826/swt-table-getdata-to-string-list

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