title: Remove border from JComboBox
body: <p>Do you know any way to remove the border from a JComboBox in Java? I try the following code</p>
  
  <pre><code>public class ComboFrame extends JFrame {
      public ComboFrame() {
          JPanel container = new JPanel();
  
          JComboBox cmb = new JComboBox(new String[] { "one", "two" });
          cmb.setBorder(BorderFactory.createEmptyBorder());
          container.add(cmb);
  
          getContentPane().add(container);
          pack();
      }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      EventQueue.invokeLater(new Runnable() {
          public void run() {
              new ComboFrame().setVisible(true);
          }
      });
  }
  </code></pre>
  
  <p>Don't ask why would someone want to remove the border from a combobx... I guess it does not make too much sense, but this is how it's wanted, and I got really curious if it can be done. I tried several tricks, but none of them worked.</p>
  
  <p>The most effective was changing the UI with</p>
  
  <pre><code>cmb.setUI(new BasicComboBoxUI());
  </code></pre>
  
  <p>This makes the border go away, but alters the L&amp;F, and I need to keep the Windows L&amp;F if possible.</p>
  
  <p>Thanks.</p>