-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b56
-
generic
-
generic
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
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
- relates to
-
JDK-4912602 JFileDIalog does not show the current directory in GTK
- Resolved
-
JDK-4959456 GTK: JFileChooser directory list is incorrect when an empty directory is passed
- Resolved