title: My JComboBox displays blank entry when I made a range of array
body: <p>I'm trying to make a JComboBox GUI that displays years. I expect the combo box to start at 1910 but the GUI shows a blank entry and you could only see the items when you scroll down, although the console starts at 1910. I don't know if there's something wrong in my combo box or in my for-loop. Is there any way to fix this? Beginner here :)</p>
  <pre><code>Integer[] year = new Integer[2020];
  
  for(int i = 1910; i &lt; year.length; i++) {
      year[i] = i;
      //System.out.println(year[i]);
  }
  yearBox = new JComboBox(year);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/CddEV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CddEV.png" alt="" /></a></p>