private void updatePreview(Color color, boolean fromHex) { if (color != null && !color.equals(myColor)) { myColor = color; myPreviewComponent.setColor(color); myColorWheelPanel.setColor(color, fromHex ? myHex : null); if (fromHex) { applyColor(color); } else { applyColorToHEX(color); } fireColorChanged(color); } }
private void setColor(Color color, Object src) { colorChanged(color, src); myColorWheelPanel.setColor(color, src); }