public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
super.getTableCellRendererComponent(table, value, isSelected, hasFocus,
row, column);
StartStopState state = (StartStopState) value;
if (state.getValue() == StartStopState.FAILED) {
setIcon(failedIcon);
setToolTipText(errorMsg);
} else {
setIcon((state.getValue() == StartStopState.STOPPED) ? stoppedIcon
: startedIcon);
setToolTipText(null);
}
return this;