title: JFileChooser does not return control on close in Ubuntu
body: <p>I'm trying to use JFileChooser to open a file. I find the file I want and click 'OK'. The dialog box goes away and the rest of the code continues to run, but the whole GUI is no longer operational. I can't even close the window, except manually through the IDE I'm programming in. However, if I click 'cancel', everything works normally. This code worked fine when I was developing in Windows 7. It does not work in Ubuntu (10.04 Lucid). My code looks thusly:</p>
  
  <pre><code>JFileChooser chooser = new JFileChooser();
  chooser.setFileFilter(new FileNameExtensionFilter("Wav Files", "wav", "WAV"));
  int retVal = chooser.showOpenDialog(this);
  if(retVal == JFileChooser.APPROVE_OPTION) {
      String filePath = chooser.getSelectedFile().getPath();
      txfFileSelect.setText(filePath); // txfFileSelect is a JTextField which is supposed to change when I click 'OK'. It doesn't.
  }
  
  else {
      txfFileSelect.setText("Test"); // this works normally
  }
  </code></pre>