title: Combo Box JavaFx with FXML
body: <p>how can i use to <strong>Combo Box</strong> with <strong>FXML</strong>? i need to set dynamic data.. Does anyone have an example?</p>
  
  <p>This is my Sample.fxml</p>
  
  <pre><code>&lt;AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml" fx:controller="javafxapplication15.SampleController"&gt;
      &lt;children&gt;
          &lt;Button layoutX="126" layoutY="90" text="Click Me!" onAction="#handleButtonAction" fx:id="button" /&gt;
          &lt;Label layoutX="126" layoutY="120" minHeight="16" minWidth="69" fx:id="label" /&gt;
          &lt;ComboBox  fx:id="ciudad" prefWidth="123.0" GridPane.columnIndex="1" GridPane.rowIndex="3"&gt;                
              &lt;cellValueFactory&gt;
                      &lt;PropertyValueFactory property="firstName" /&gt;
              &lt;/cellValueFactory&gt;
          &lt;/ComboBox&gt;
      &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>