Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 77167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:47:16+00:00 2026-05-10T20:47:16+00:00

Info – for better formatting, I used code-formatting throughout the whole posting. Hi, I

  • 0

Info – for better formatting, I used code-formatting throughout the whole posting.

Hi,  I have a highlighted JXTable. Rows are highlighted, depending on the value  of a specific column (c2). Everytime the value of column c2 changes, the color  is switched from white to grey or from grey to white.  Example         c0  c1    c2   c3     1 | aaa | ab | dd     2 | aaa | ab | ee     3 | aaa | cd | ff     4 | aaa | cd | gg     5 | bbb | ef | dd  Colors are like this: 1,2 -> white 3,4 -> grey 5   -> white  If I now filter for 'dd', my table looks like this      c0  c1    c2   c3     1 | aaa | ab | dd     5 | bbb | ef | dd  And the colors are like this: 1 -> white 5 -> white  But I want the table to change the color of row 5, because the previous  value in c2 was different. See my Problem? How can I apply the highlighter again, on my JXTAble,  after filtering? Or in other words, how can I highlight only the filtered  values? 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:47:17+00:00Added an answer on May 10, 2026 at 8:47 pm

    Could you just add a second highlighter ?

    jxTable.getHighlighters().addHighlighter() 

    One which would only apply itself when the JXtable is effectively filtered.

    If that is not possible, because once a row has been highlighted, the other highlighters may not be called, you could define a controller which:

    a) has a propertyChangeListner to the table, listening for filtered state

    b) has the special Predicate with the set of rows and the highlighter

    c) on propertyChange check the row, toggle the highlighter’s predicate between NEVER and your custom as appropriate. The highlighter’s property change will trigger the repaint

    Forcing a repaint is basically what does the HighlighterClientVisualCheck sample in the test.org.jdesktop.swingx.renderer package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found some info on the subject ( like this link) , but
INFO: I have an Array of 100 nodes, [ 0 .. 99 ]. Each
General Info: ASP.NET MVC app using ADO.NET Entity Framework SQL Server 2005 I have
Background Info: File Replication is Lame Currently, we have a massive, high-traffic ASP.NET web
//get var of posted info so user does not //have to reinsert if if
Background Info: I have two COM+ components on a remote server, based on .NET
the info file is right,the following is my module file code. when i access
Background info I have an app where users can make microsites ala http://myname.the_app.com .
Backgorund info : I have a buddy of mine in the Navy, and he
Background info I have a query regarding a questions from Sierra & Bates, SCJP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.