How to set "word wrap" for cells in a uitable?
26 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm trying to figure out how to set "word wrap" to be true for a uitable on a particular cell. I have access to the underlying java object (thanks to Yair Altman's findjobj function) and have been able to figure out how to set the height of the uitable cell using the java object, but am not sure how to get the cells to word wrap.
Any ideas on how to do that??
1 个评论
Sinh Le
2017-6-13
编辑:Walter Roberson
2017-6-13
can u give an example of how to set the height of the uitable cell using the java object.
I tried this, but it did not work
import com.jidesoft.grid.*
jscroll = findjobj(table_4);
jtable = jscroll.getViewport.getView;
jtable.setRowHeight(11,30)
采纳的回答
Darin McCoy
2012-8-31
2 个评论
Walter Roberson
2014-2-24
mywords = {'<HTML>This is a longer phrase that should wrap'; 'But this one which does not have the tag, should not wrap' };
uicontrol('Data', mywords)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!