在 elipse-rcp 应用程序中,我正在为 jface 表中的一行设置背景颜色,但我不希望选择更改此颜色。我希望能够为选定的行指定颜色更改。
最佳答案
根据 this thread , 对于 JFace Viewers
(ListViewer
, Table
, Tree
) 通过使用 EraseItem
和 MeasureItem
事件
文章“Custom Drawing Table and Tree Items”中详述的一般原则
SWT.EraseItem
: allows a client to custom draw a cell's background and/or selection, and to influence whether the cell's foreground should be drawn
关于java - 如何更改 jface 表的背景选择颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/911834/