This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

How can I change the table selection color?

General questions regarding the development with JVx.

How can I change the table selection color?

Postby johnit » Mon Jan 14, 2019 1:55 pm

I want to change the selection color but don't know how to do this.
johnit
 
Posts: 45
Joined: Fri Nov 16, 2012 5:58 pm

Re: How can I change the table selection color?

Postby Support@SIB » Mon Jan 14, 2019 1:56 pm

It depends on the UI implementation. If you use Vaadin UI, it's possible via CSS.
If you use Swing UI, it's possible via factory:

Code: Select all
factory.setSystemColor(String type, IColor color)

The type is configure in IColor, e.g.

Code: Select all
IColor.CONTROL_ACTIVE_SELECTION_BACKGROUND


If you set the system color, it will be used for the whole application! It's currently not possible to configure a system color per component. There's a feature request for this requirement.
User avatar
Support@SIB
 
Posts: 353
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development