开发者

SWT on OS X: how to make trees and tables striped

开发者 https://www.devze.com 2023-03-21 08:53 出处:网络
I want to avoid having to override each label provider. Is there a simpler approach to make trees and tables for OS X s开发者_高级运维triped (altering background color - white, light-blue)?You simply

I want to avoid having to override each label provider. Is there a simpler approach to make trees and tables for OS X s开发者_高级运维triped (altering background color - white, light-blue)?


You simply want the alternating white/light-blue backgrounds that Mac OS typically provides? (Like what's in iTunes, for example?)

Just call setLinesVisible(true) on your Table.


Have a look at this JFace Snippet...

0

精彩评论

暂无评论...
验证码 换一张
取 消