public class CellHighlighterRenderer extends Object implements TableCellRenderer
Constructor and Description |
---|
CellHighlighterRenderer(Color backgroundColor,
Color highlightColor,
int align,
String highlightLabel)
Creates a new CellHighlighterRenderer.
|
Modifier and Type | Method and Description |
---|---|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
public CellHighlighterRenderer(Color backgroundColor, Color highlightColor, int align, String highlightLabel)
backgroundColor
- default background colorhighlightColor
- highlight background coloralign
- SwingConstant: LEFT, CENTER, RIGHT, LEADING or TRAILING.highlightLabel
- the label the strings have to end with in order to
be highlightedpublic Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
Copyright © 2016. All rights reserved.