【问题标题】:How to show specific color on top when multiple background colors are combined in nattable?当多种背景颜色组合在 nattable 中时,如何在顶部显示特定颜色?
【发布时间】:2021-12-18 08:20:00
【问题描述】:

enter image description here

我添加了 nattable configLabel 来添加背景颜色。

但是如果你想在多种背景颜色组合时在顶部显示蓝色怎么办?

【问题讨论】:

    标签: java eclipse nattable nebula


    【解决方案1】:

    标签在LabelStack 中管理。标签是自上而下解释的。这意味着如果应用了多个标签,所有标签都会对背景颜色产生影响,那么最上面的标签会胜出。因此,如果蓝色应该获胜,则负责蓝色的标签需要位于标签堆栈的顶部。

    【讨论】:

      猜你喜欢
      • 2018-02-05
      • 1970-01-01
      • 2021-12-10
      • 1970-01-01
      • 2020-05-22
      • 2012-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多