private void validateAndUpdatePreview(JTextField src) {
    boolean fromHex = src == myHex;
    Color color;
    if (fromHex) {
      Color c = ColorUtil.fromHex(myHex.getText(), null);
      color = c != null ? ColorUtil.toAlpha(c, myColorWheelPanel.myColorWheel.myOpacity) : null;
    } else {
      color = gatherRGB();
    }
    if (color != null) {
      if (myColorWheelPanel.myOpacityComponent != null) {
        color = ColorUtil.toAlpha(color, myColorWheelPanel.myOpacityComponent.getValue());
      }
      updatePreview(color, fromHex);
    }
  }
private void validateAndUpdatePreview(JTextField src)