private class CellRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (column == 0) {
ArgumentValue argumentValue = (ArgumentValue) value;
setBorder(EMPTY_BORDER);
setBackground(UIUtil.getPanelBackgound());
setForeground(UIUtil.getLabelForeground());
if (argumentValue.getAttribute() != null) {
RowIcon icon = new RowIcon(2);
icon.setIcon(Icons.SMALL_TREE_BRANCH, 0);
icon.setIcon(argumentValue.getAttribute().getIcon(), 1);
setIcon(icon);
} else {
setIcon(argumentValue.getArgument().getIcon());
}
setText(argumentValue.getName());
} else {
setBorder(EMPTY_BORDER);
if (!isSelected) {
setBackground(UIUtil.getTableBackground());
setForeground(UIUtil.getLabelForeground());