title: JavaFX combobox is calling listcell.updateitem infinitely
body: <p>I am trying to make a combobox with large number of items(more than 10000). It initializes without problem. But when i click it, it just freezes. For debugging i created my own listCell and followed the updateitem function. When i click, it's calling updateitem infinitely. Shouldn't it update only visible items ? Here is an example controller:</p>
  
  <pre><code>   package sample;
  
  import javafx.fxml.FXML;
  import javafx.scene.control.ComboBox;
  import javafx.scene.control.Label;
  import javafx.scene.control.ListCell;
  
  
  public class Controller {
      @FXML
      ComboBox comboBox1;
  
      public final class ExampleCell&lt;T&gt; extends ListCell&lt;T&gt; {
  
          Label myLabel;
  
          @Override
          protected void updateItem(T item, boolean empty) {
              super.updateItem(item,empty);
              System.out.println("update");
              if (empty) {
                  setGraphic(null);
              } else {
                  if(myLabel==null){
                      myLabel=new Label((String)item);
  
                  }else{
                      myLabel.setText((String)item);}
                  setGraphic(myLabel);
              }
          }
      }
      public void initialize(){
  
      for(int i =0;i&lt;10000;i++){
          comboBox1.getItems().add("example");
      }
      comboBox1.setCellFactory(param -&gt; new ExampleCell&lt;&gt;());
     }
  }
  </code></pre>
  
  <p>And my fxml</p>
  
  <pre><code>&lt;?import javafx.scene.layout.GridPane?&gt;
  
  &lt;?import javafx.scene.control.ComboBox?&gt;
  &lt;GridPane fx:controller="sample.Controller"
            prefWidth="500"
            prefHeight="500"
            xmlns:fx="http://javafx.com/fxml" alignment="center" hgap="10" vgap="10"&gt;
      &lt;ComboBox
              fx:id="comboBox1"
      /&gt;
  &lt;/GridPane&gt;
  </code></pre>