简体   繁体   English

OS X 上的 SWT:如何使树和表格条带化

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

I want to avoid having to override each label provider.我想避免必须覆盖每个 label 提供程序。 Is there a simpler approach to make trees and tables for OS X striped (altering background color - white, light-blue)?有没有一种更简单的方法来为 OS X 条纹制作树和表格(改变背景颜色 - 白色,浅蓝色)?

You simply want the alternating white/light-blue backgrounds that Mac OS typically provides?您只是想要 Mac OS 通常提供的交替的白色/浅蓝色背景? (Like what's in iTunes, for example?) (例如 iTunes 中的内容?)

Just call setLinesVisible(true) on your Table .只需在您的Table上调用setLinesVisible(true)

Have a look at this JFace Snippet ...看看这个JFace Snippet ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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