uitable update

2 次查看(过去 30 天)
p fontaine
p fontaine 2011-3-5
How can I change only one value at a time in a uitable ? I don't want to update the whole table by something like set(h,'Data',data) because the table is large It is inefficient and induces flickering on display when doing it periodically

采纳的回答

p fontaine
p fontaine 2011-3-5
It works ! as written above (I made a mistake)

更多回答(1 个)

Walter Roberson
Walter Roberson 2011-3-5
The mechanism depends upon which version of Matlab you are using, as the internals of uitable were rewritten. See for example this discussion
  1 个评论
p fontaine
p fontaine 2011-3-5
R2010a
After reading, I tried the following :
assuming htable is a handle on a uitable
jUIScrollPane = findjobj(htable);
jUITable = jUIScrollPane.getViewport.getView;
model = jUITable.getModel();
model.setValueAt(12,1,1);
but the cell is not set ....

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by