Questions tagged [swingx-highlighter]
7 questions
7
votes
1 answer
How to highlight every other row in JTable with swingx 1.6
I need to highlight every other row in my JTable. With old version of swingx it could be done like this:
table.setHighlighters(new HighlighterPipeline(new Highlighter[] { new AlternateRowHighlighter(
color1, color2,color3 }));
but now,…

Dakarth
- 83
- 7
6
votes
1 answer
SwingX JXTable: use ColorHighlighter to color rows based on a "row object"
I'm using JXTable and I know how to do this based on DefaultRenderers for JTable, but I want to know how to do it in a way that's JXTable-friendly based on HighlighterPipeline.
I have a list of objects displayed in a table, and each row represents…

Jason S
- 184,598
- 164
- 608
- 970
4
votes
1 answer
JXTable - Highlighter after filtering table
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…

Kai Mechel
- 753
- 8
- 19
1
vote
0 answers
Wrong highlighting while using a JXTable with the MatchingTextHighlighter
The basic question:
While changing the width of a TableColumn the method SwingUtilities.layoutCompoundLabel(..) sets the parameter Rectangle textR to an old value (or 'the value before').
How could I get the current (real) Rectangle value?
Some…

bobndrew
- 395
- 10
- 32
1
vote
1 answer
How do I use SwingX's Highlighter to return a different renderer component?
I noticed SwingX's Highlighter interface allows the highlighter to return a different component from the one that is being passed in. I can't actually find any examples of this being used, but I thought I would try to use it to create some kind of…

Hakanai
- 12,010
- 10
- 62
- 132
1
vote
1 answer
How to use relative cell highlighting in SwingX?
I want to highlight cells in a org.jdesktop.swingx.JXTreeTable relative to the value inside like in the SwingX showcase under 'Highlighting (Extended)':
There is some code provided in the showcase but I just can't get it to work, it doesn't…

Michael Kleimann
- 502
- 2
- 10
1
vote
0 answers
HighLighting JXTreeTable row
I wwrote the following code to Highlight a row in JXTreeTable ,
public void treeExpanded(TreeExpansionEvent te) {
final HighlightPredicate myPredicate = new HighlightPredicate() {
@Override
public boolean…

c.pramod
- 606
- 1
- 8
- 22