DefaultRenderer

Top  Previous  Next

 

DefaultRenderer is the superclass of all others renderers in the com.sciapp.renderers package. It has methods for drawing alternative rows of a table with different color:

 

public void setOddColor(Color c);

public void setEvenColor(Color c);

 

It can also add some spaces at the end of the cell to improve the presentation of the table.

 

public void setSpacing(boolean spacing);

public boolean getSpacing();

public void setSpaces(int spaces);

 

AdvancedJTable installs a DefaultRenderer instance as the renderer for the Object class.