Change bg color of AutoFilterTableHeader when clicked

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Change bg color of AutoFilterTableHeader when clicked

Postby jsavoretti » Thu Oct 26, 2017 10:39 pm

We are using AutoFilterTableHeader , want to change the filter options background color of AutoFilterTableHeader on click.
Provided a screenshot for the same. I wanted to change the color of the highlighted area. We had set the background colors for the rest of the UI to BLACK by updating properties of UIManager.

Could you please let us know how can we do it.

Thanks in Advance.
Attachments
2017-10-26_162923.png
Screenshot
2017-10-26_162923.png (8.63 KiB) Viewed 16852 times
jsavoretti
 
Posts: 357
Joined: Thu Mar 08, 2007 9:31 am

Re: Change bg color of AutoFilterTableHeader when clicked

Postby JIDE Support » Thu Oct 26, 2017 10:49 pm

I don't think I know the answer without trying it myself. Can you please send me a test case with the L&F you are using?
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Change bg color of AutoFilterTableHeader when clicked

Postby jsavoretti » Wed Nov 01, 2017 11:26 pm

Please find the snippet of code for AutoFilterTableHeader. We are using the default L&F and changed the colors by updating the properties (Table.background=50,50,50, Table.dropLineColor=49,106,196, Table.dropLineShortColor=51,153,255, Table.foreground=255,255,255, Table.gridColor=25,25,25, Table.selectionBackground=51,153,255, TableHeader.background=100,100,100, TableHeader.foreground=255,255,255) in UIManager

this.mainTable = scrollPane.getMainTable();
autoFilterTableHeader = new AutoFilterTableHeader(this.mainTable);
autoFilterTableHeader.setAutoFilterEnabled(true);
autoFilterTableHeader.setUseNativeHeaderRenderer(true);
this.mainTable.setTableHeader(autoFilterTableHeader);

Please let us know if any thing is needed from our side.

Thanks.
jsavoretti
 
Posts: 357
Joined: Thu Mar 08, 2007 9:31 am


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 7 guests

cron