In order to give a table effect, you will have to create a class that will inherit DefaultTableCellRenderer
and overwrite method getTableCellRendererComponent
You can do as in the example below, in that it changes beyond the background, border and font.
private class TableRowHeaderCellRenderer extends DefaultTableCellRenderer {
@Override
public Component getTableCellRendererComponent(
JTable table, Object value, boolean isSelected,
boolean hasFocus, int row, int column) {
setFont(new java.awt.Font("Arial Black", 0, 21 ));
setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
setBackground(new Color(244, 242, 228));
setValue((String) value);
return this;
}
}