简体   繁体   中英

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.

So is it possible to change it; and how to do it?

You can change the row height using an SWT.MeasureItem listener:

table.addListener(SWT.MeasureItem, new Listener()
 {
   public void handleEvent(Event event)
   {
     event.height = row height (pixels)
   }
 });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM