void (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Color background = null; if (myMax != myMin) { if (myColored && value != null) { try { String valueStr = value.toString(); if (!valueStr.isEmpty()) { double rangedValue = PyNumericViewUtil.getRangedValue(valueStr, myType, myMin, myMax, myComplexMax, myComplexMin); background = PyNumericViewUtil.rangedValueToColor(rangedValue); } } catch (NumberFormatException ignored) { } } } this.setBackground(background); }