@Override
    public Component prepareRenderer(TableCellRenderer renderer, int row,
	    int column) {
	Component c = super.prepareRenderer(renderer, row, column);
	Color fg;
	// ログレベルに応じて文字の色を変更
	switch ((char) getValueAt(row, 0)) {
	case LogPanel.LOGLEVEL_ERROR:
	    fg = Color.RED;
	    break;
	case LogPanel.LOGLEVEL_WARN:
	    fg = new Color(255, 128, 0);
	    break;
	case LogPanel.LOGLEVEL_INFO:
	    fg = new Color(0, 128, 0);
	    break;
	case LogPanel.LOGLEVEL_DEBUG:
	    fg = Color.BLUE;
	    break;
	default:
	    fg = Color.BLACK;
	    break;
	}
	c.setBackground(isRowSelected(row) ? getSelectionBackground()
		: getBackground());
	c.setForeground(fg);
	int lineCount = getValueAt(row, 3).toString().split("\n").length;
	setRowHeight(row, getRowHeight() * lineCount);
	return c;
    }