I have a little problem with SwingX components.
In my Im application using JXTable and on the table I register MouseOver ColorHighlighter. The table model defines two columns; String column and Boolean column. By default, rendering a Boolean column in JXTable is CheckBoxes. Now the problem is when the mouse moves along the lines, ColorHighlighter selects columns of different colors; the boolean column is darker than the String column. In the example you can see the behavior.
I want all columns to be highlighted in the same color.
Does anyone have an idea to solve a problem?

import java.awt.BorderLayout; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.table.DefaultTableModel; import org.jdesktop.swingx.JXTable; import org.jdesktop.swingx.decorator.ColorHighlighter; import org.jdesktop.swingx.decorator.HighlightPredicate; public class BooleanHighlighterDemo { public static void main( String args[] ) { JFrame frame = new JFrame( "Boolean Highlighter" ); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); JXTable table = new JXTable( new BooleanTableModel() );
code>
source share