This is a Java
JFileChooser example from Sun Microsystems that shows how to work with a
JFileChooser, and also shows related features, including
showOpenDialog methods, and more.
(I’ve included it here because I work with Java Swing applications quite a bit, and I want it to be easier to find on my website.)