@Override
 protected void fillPage(
     Page page,
     JTable table,
     Object value,
     boolean isSelected,
     boolean hasFocus,
     int row,
     int column) {
   Color foreground = isSelected ? table.getSelectionForeground() : table.getForeground();
   Color background = isSelected ? table.getSelectionBackground() : table.getBackground();
   renderCellValue(page, value, foreground, background, isSelected);
 }
 @Override
 protected int getMaxAvailablePageWidth(
     Page page,
     JTable table,
     Object value,
     boolean isSelected,
     boolean hasFocus,
     int row,
     int column) {
   return table.getColumnModel().getColumn(column).getWidth();
 }