public void setBackgroundColor(String s) {
		final String BGCOLOR_PLACEHOLDER = owner.getResource("splitter.placeholder.transparent", "Transparent");
		String prevText = this.bgcolor.getText().trim().isEmpty() ? BGCOLOR_PLACEHOLDER : this.bgcolor.getText();
		Color col = null;
		if (!IOSImageUtil.isNullOrWhiteSpace(s)) {
			while (s.length() < 6) s = "0".concat(s);
			if (s.length() > 8) s = s.substring(0, 8);
			if (s.length() == 7) s = "0".concat(s);
			try {
				col = new Color(Long.valueOf(s, 16).intValue(), true);
				bgcolor.setText(s);
				bgcolor.setBackground(new Color(col.getRed(), col.getGreen(), col.getBlue()));
				float[] hsb = Color.RGBtoHSB(col.getRed(), col.getGreen(), col.getBlue(), null);
				//bgcolor.setForeground(new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)Math.floor(Math.acos(hsb[2])))));
				bgcolor.setForeground(new Color(Color.HSBtoRGB(hsb[0], 1.0f - hsb[1], 1.0f - hsb[2])));
			} catch (Exception ex) {
				bgcolor.setBackground(Color.WHITE);
				bgcolor.setForeground(Color.LIGHT_GRAY);
				ex.printStackTrace();
			}
		}
		if (col == null) {
			bgcolor.setText(BGCOLOR_PLACEHOLDER);
			bgcolor.setForeground(Color.LIGHT_GRAY);
			bgcolor.setBackground(Color.WHITE);
		}
		if (!prevText.equals(this.bgcolor.getText())) {
			owner.setStorePropertiesRequested(true);
		}
	}