To add stripping to your JXTable
you need to use HighlighterFactory
.
Try:
table.addHighlighter(HighlighterFactory.createSimpleStriping());
or:
table.addHighlighter(HighlighterFactory.createAlternateStriping(Color baseBackground, Color alternateBackground));
Alternatively, if you want to add multiple highlighters, you can use:
table.setHighlighters(Highlighter... highlighters);
using always HighlighterFactory
to create your highlighters.