title: jcombobox is listing but unable to select the items in linux java1.6
body: <p>I am having a problem with jcombobox in linux java 1.6. The exact problem is the combo is listing the items when i click the combobox (down arrow) but it minimizes if the selection goes off. i.e I am unable to select the items in the list. The same code is working in windows(java1.5, 1.6) and linux(java 1.5). The prob is only in linux java 1.6. </p>
  
  <p>Please help me to get out of this. Thanks in advance.</p>
  
  <pre><code>Below is the code, 
  
  import java.awt.*;
  import java.awt.event.*;
  import javax.swing.*;
  
  public class JComboBoxDemo extends JPanel {
  
  
      public JComboBoxDemo() {
          String[] comboTypes = { "Numbers", "Alphabets", "Symbols" };
          // Create the combo box, and set 2nd item as Default
          JComboBox comboTypesList = new JComboBox(comboTypes);
          comboTypesList.setSelectedIndex(2);
          comboTypesList.addActionListener(new ActionListener() {
  
              public void actionPerformed(ActionEvent e) {
                  JComboBox jcmbType = (JComboBox) e.getSource();
                  String cmbType = (String) jcmbType.getSelectedItem();
                  System.out.println(cmbType);
              }
          });
          // Set up the picture
  
          // Layout the demo
          setLayout(new BorderLayout());
          add(comboTypesList, BorderLayout.NORTH);
  
          setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
      }
      public static void main(String s[]) {
          JFrame frame = new JFrame("JComboBox Usage Demo");
          frame.addWindowListener(new WindowAdapter() {
  
              public void windowClosing(WindowEvent e) {
                  System.exit(0);
              }
          });
          frame.setContentPane(new JComboBoxDemo());
          frame.pack();
          frame.setVisible(true);
      }
  }
  </code></pre>