code: public void setHex(String hex) throws Exception {
  
          CmsColor color = new CmsColor();
          color.setHex(hex);
  
          m_red = color.getRed();
          m_green = color.getGreen();
          m_blue = color.getBlue();
          m_hue = color.getHue();
          m_saturation = color.getSaturation();
          m_brightness = color.getValue();
  
          m_tbRed.setText(Integer.toString(m_red));
          m_tbGreen.setText(Integer.toString(m_green));
          m_tbBlue.setText(Integer.toString(m_blue));
          m_tbHue.setText(Integer.toString(m_hue));
          m_tbSaturation.setText(Integer.toString(m_saturation));
          m_tbBrightness.setText(Integer.toString(m_brightness));
          m_tbHexColor.setText(color.getHex());
          setPreview(color.getHex());
  
          updateSliders();
      }
docs: Sets the hexadecimal notation for Red, Green, and Blue. <p>
  @param hex Hexadecimal notation of Red, Green and Blue
  @throws java.lang.Exception if something goes wrong