The fix for bug 4959456 was not complete. If the L&F is changed to GTK after creating a JFileChooser, then the first item in the folder is "null/".
This is reproducible in 1.5 beta1 and the latest build (b50).
Test case:
import javax.swing.*;
public class bug5045464 {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JFileChooser fc = new JFileChooser();
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
SwingUtilities.updateComponentTreeUI(fc);
fc.showOpenDialog(null);
System.exit(0);
} catch (Exception ex) {
System.err.println(ex);
System.exit(1);
}
}
});
}
}
###@###.### 2004-05-11