Skip to content

Instantly share code, notes, and snippets.

@anatawa12
Last active January 11, 2022 10:10
Show Gist options
  • Save anatawa12/c25c67cff0272792f57af3596f11dc08 to your computer and use it in GitHub Desktop.
Save anatawa12/c25c67cff0272792f57af3596f11dc08 to your computer and use it in GitHub Desktop.
JFileChooser bug report
import javax.swing.*;
public class SimpleJFileChosser {
public static void main(String[] args) {
JFileChooser dirChooser = new JFileChooser();
dirChooser.setFileHidingEnabled(false);
dirChooser.showOpenDialog(null);
JOptionPane.showMessageDialog(null, "provided path is " + dirChooser.getSelectedFile().getPath());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment