0

I'm trying to apply a gradient in my Row Header and Column Header in NatTable. In the NatTable examples I can see that a CSS file has been used to apply gradient color in DarkExample. However I'm more interested in applying it through org.eclipse.nebula.widgets.nattable.style.Style.

Foreground gradient : left to right Red to White

Background gradient : Top to bottom Blue to White

Corner gradient : Top to bottom Red to White

Is it possible?

1 Answer 1

1

Everything that can be done via CSS can be done programmatically, as the CSS actually just forwards to the NatTable styling API.

That said, you can use the GradientBackgroundPainter. And this is also shown in the CellPainterExample.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.