|
DefaultStyle |
Top Previous Next |
DefaultStyle is a style that paints alternate rows of a table with different colors.
You can assign the even/odd color with:
public void setEvenColor(Color evenColor);
public void setOddColor(Color oddColor);
You can also retrieve the assigned even/odd color with:
public Color getEvenColor();
public Color getOddColor();
AdvancedJTable creates a DefaultStyle upon initialization. You can specify the odd and even row colors by using AdvancedJTable's methods:
public void setEvenColor(Color evenColor);
public void setOddColor(Color oddColor);