public class HtmlLinksRenderer extends Object implements TableCellRenderer
Note that the renderer assumes that the HTML tags include the font color tag setting the color to one of the two colors provided in the constructor.
Constructor and Description |
---|
HtmlLinksRenderer(String selectedRowFontColor,
String notSelectedRowFontColor)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
public HtmlLinksRenderer(String selectedRowFontColor, String notSelectedRowFontColor)
selectedRowFontColor
- the color to use for the HTML tags for the
selected rows, in HTML color code, i.e., #FFFFFF for white.notSelectedRowFontColor
- the color to use for the HTML tags for the
rows that are not selected, in HTML color code, i.e., #000000 for black.public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
Copyright © 2016. All rights reserved.