[英]How to change cells spacing in an swt Table
Please I'm trying to change the SWT table cell spacing between two TableItems but I haven't found a suitable way to do it. 请尝试更改两个TableItem之间的SWT表单元格间距,但是我没有找到合适的方法来做到这一点。
So is it possible to change it; 因此可以更改它; and how to do it? 以及如何做?
You can change the row height using an SWT.MeasureItem
listener: 您可以使用SWT.MeasureItem
侦听SWT.MeasureItem
更改行高:
table.addListener(SWT.MeasureItem, new Listener()
{
public void handleEvent(Event event)
{
event.height = row height (pixels)
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.