I also believe that you can choose directories from the JFileChooser object by adding this:
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
Of course, you’ll need to test if it’s a file or directory (don’t just look for .txt). File objects have a boolean function for that called isDirectory(). After that, just recurse through and there ya go.
from here
Also, are you familiar with regular expressions? I’ve never used them in Java (mostly in Python) but they could be helpful in testing whether the text file you’ve found is a compatible stats file to read. Just a thought for a future version.
About the JRE, I hate to disappoint a fellow Java dev but not that many people have Java2 compatible JRE’s.
I believe (don’t depend on me for this, I’ve never really cared to read the Java EULA) that you can bundle the JRE with your program specifically for running your application. You can not bundle the JRE in order to allow them to run anything else because gasp, that might be useful.
People wonder why Java never caught. Stupid lawyering at Sun killed it. Maybe they should sue MS again. Yeah that might work. shakes head