@Override
  public Component getTableCellRendererComponent(
      final JTable table,
      final Object value,
      final boolean isSelected,
      final boolean hasFocus,
      final int row,
      final int column) {
    setFont(INSTRUCTION_FONT);

    setText(value.toString());

    if (isSelected) {
      setBackground(table.getSelectionBackground());

      if (selectedBorder == null) {
        selectedBorder =
            BorderFactory.createMatteBorder(2, 5, 2, 5, table.getSelectionBackground());
      }

      setBorder(selectedBorder);
    } else {
      setBackground(Color.WHITE);

      if (unselectedBorder == null) {
        unselectedBorder = BorderFactory.createMatteBorder(2, 5, 2, 5, table.getBackground());
      }

      setBorder(unselectedBorder);
    }

    return this;
  }
Can be used to render cells using the default monospaced font.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/tables/CMonospaceRenderer.java