title: JavaFX change 3 slidebars' value to automatically update the rgb color
body: <p>Set 3 slidebar: value from 0 to 255, 3 slidebar set as red, green and blue. I try to bind 3 slidebars to color and it's faild. So how can I solve this? When I change the slidebar, the color can change? How can I program this function? Thanks.</p>
  
  <p>code:</p>
  
  <pre><code>public class FXMLDocumentController implements Initializable {
  
      @FXML
      private Label label;
  
      @FXML
      private Slider redbar;
  
      @FXML
      private Slider greenbar;
  
      @FXML
      private Slider bluebar;
  
      @FXML
      private void handleButtonAction(ActionEvent event) {
  
      }
  
      @Override
      public void initialize(URL url, ResourceBundle rb) {
          // TODO
          Integer redValue=(int)redbar.getValue();
          Integer greenValue=(int)greenbar.getValue();
          Integer blueValue=(int)bluebar.getValue();
          Color col=Color.rgb(redValue,greenValue,blueValue);//I only can set as like this, then pass color to laber
          // I wanner bind col with laber.backgroundProperty() here
      }
  </code></pre>