I find it'll be more useful to add some method that can set color for dividers directly. It won't cost more than a few lines of code:
e.g.
define a member variable:
Color dividerBackground;
then add a method:
public void setDividerBackground(
Color background){
dividerBackgroundColor = background;
this.repaint();
}
and change the
g2d.setColor(color.black)
in the defaultDiverPainter
to:
g2d.setColor(dividerBackground); |