title: Change TextField Value based on a combination of Comboboxes selection JavaFX and Java 1.7
body: <p>I have multible comboBoxes, based on the section of a comboBox combination I would like to set the value of TextField. Say for example we have a fruit type order form, where we need to 1) Select Fruit's Type 2) Fruit's Count. Then Set the TextField accordingly to the Type and count. Here is an example. </p>
  
  <pre><code>public class FruitsOrderController implements Initializable {
  
      @FXML
      private ComboBox fruitTypeBox, fruitCountBox ;
      @FXML
      private TextField fruitOrder; 
  
      ObservableList&lt;String&gt; fruitTypeList = FXCollections.observableArrayList("Apples", "Oranges");
      ObservableList&lt;Integer&gt; applesCountList = FXCollections.observableArrayList(5,6,7);
      ObservableList&lt;Integer&gt; orangesCountList = FXCollections.observableArrayList(1,2,3);
  
      @Override
      public void initialize(URL url, ResourceBundle rb) {
          fruitTypeBox.setItems(fruitTypeList);
          fruitTypeBox.setValue("Oranges");
          fruitCountBox.setItems(orangesCountList);
          fruitCountBox.setValue(3);
      }
      @FXML
      public void fruitOrder(){
          if (fruitTypeBox.getValue().equals("Apples")){
              fruitCountBox.setItems(applesCountList);
              fruitCountBox.setValue(7);
           }
  
          if (fruitTypeBox.getValue().equals("Oranges")){
              fruitCountBox.setItems(orangesCountList);
              fruitCountBox.setValue(3);
          }
        }
    }
  </code></pre>
  
  <p>Now, I made the following selection 1) Fruits Type = Oranges 2) Fruits Count 3 and I want to change my TextFiled to reflect my choice as demonstrated in the image below.<br>
  <a href="https://i.stack.imgur.com/JP5Kp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JP5Kp.png" alt="enter image description here"></a></p>