uitable update

3 visualizaciones (últimos 30 días)
p fontaine
p fontaine el 5 de Mzo. de 2011
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

Respuesta aceptada

p fontaine
p fontaine el 5 de Mzo. de 2011
It works ! as written above (I made a mistake)

Más respuestas (1)

Walter Roberson
Walter Roberson el 5 de Mzo. de 2011
The mechanism depends upon which version of Matlab you are using, as the internals of uitable were rewritten. See for example this discussion
  1 comentario
p fontaine
p fontaine el 5 de Mzo. de 2011
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 ....

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by