def getTableCellRendererComponent(self, table, value, isSelected, hasFocus, row, column):
        if value:
            self.setSelected(True)
        else:
            self.setSelected(False)
        if isSelected:
            self.setForeground(table.getSelectionForeground())
            self.setBackground(table.getSelectionBackground())
        else:
            self.setForeground(table.getForeground())
            self.setBackground(table.getBackground())

        # Color based on results
        # TODO adjust to more pleasant colors
        if column >= self._db.STATIC_MESSAGE_TABLE_COLUMN_COUNT:
            messageEntry = self._db.getMessageByRow(row)
            if messageEntry:
                roleEntry = self._db.getRoleByMessageTableColumn(column)
                if roleEntry:
                    roleIndex = roleEntry._index
                    if not messageEntry._roleResults in roleIndex:
                        self.setBackground(table.getBackground())
                    else:
                        # TODO: Make a Border for the results that looks good
                        #self.setBorder(MatteBorder(0,1,1,0,Color.BLACK))
                        #self.setBorderPainted(True)
                        if messageEntry._roleResults[roleIndex]:
                            self.setBackground(Color.GREEN)
                        else:
                            self.setBackground(Color.RED)

        return self
      

##
## Classes for Messages, Roles, and Users
##
dataset/ETHPy150Open SecurityInnovation/AuthMatrix/AuthMatrix.py/SuccessBooleanRenderer.getTableCellRendererComponent/swapped operands of `in`