Class MultiLineColumnHeaderRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TableCellRenderer

public class MultiLineColumnHeaderRenderer extends JPanel implements TableCellRenderer
MultiLineColumnRenderer is a table cell renderer which creates multi-line column headers for a given table.
See Also:
  • Constructor Details

    • MultiLineColumnHeaderRenderer

      public MultiLineColumnHeaderRenderer()
      Create a MultiLineColumnHeaderRenderer.
  • Method Details

    • getTableCellRendererComponent

      public final Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean isFocused, int row, int column)
      Create a column header which contains multi-line text.
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Parameters:
      table - JTable table containing columns
      value - the value to assign to the cell at [row, column]
      isSelected - true if cell is selected
      isFocused - true if cell has focus
      row - the row of the cell to render
      column - the column of the cell to render
      Returns:
      the MultiLineColumnHeaderRenderer
    • setFontBold

      public void setFontBold(boolean boldFont)
      Sets the header label font to bold.
      Parameters:
      boldFont -
    • isFondBold

      public boolean isFondBold()
      Returns the value header label fond bold property value.
      Returns:
      boolean true means label font is bold.