title: JComboBox changes the way it looks from in preview mode to compiling and running
body: <p>I am making an application using NetBeans in Java for the first time and I am encountering behavior I don't understand. When dragging a JComboBox into my app, it looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/HySK3.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/HySK3.jpg</a></p>
  
  <p>Which I really do like the look of this. But when compiling and running my application it changes the look to this:</p>
  
  <p><a href="https://i.stack.imgur.com/4r0cL.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/4r0cL.jpg</a></p>
  
  <p>I believe the solution is to override methods in BasicComboBoxUI as suggested in this stackoverflow question <a href="https://stackoverflow.com/questions/3008447/how-can-i-change-the-arrow-style-in-a-jcombobox">How can I change the arrow style in a JComboBox</a> but my question is why does this happen? And is that the solution I am looking for? Thanks in advance!</p>