title: Custom JFileChooser. How to add JComboBox into the JFileChooser
body: <p>I want to add JComboBox into the JFileChooser.</p>
  
  <p>I tried to extend JFileChooser and to add the combo box manually. I actually managed to do it but that removed the file navigation panel from the JFileChooser dialog. Code:</p>
  
  <pre><code> public class CustomDefinitionJFileChooser extends JFileChooser{
         public CustomDefinitionJFileChooser() {
              JComboBox comboBox = new JComboBox();
              comboBox.setModel(new DefaultComboBoxModel(new String[] { "Item 1", "Item 2" }));
              super.add(comboBox);
         }
   }
  </code></pre>
  
  <p>Expected result:</p>
  
  <p><img src="https://i.stack.imgur.com/7AB3H.png" alt="enter image description here"></p>
  
  <p>Actual result:</p>
  
  <p><img src="https://i.stack.imgur.com/ZhqhK.png" alt="enter image description here"></p>