It would help if you described EXACTLY what your problem is.
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
all the matrices are coming empty
They are supposed to be loaded from a list created in textselector, right?
Put lots of print statements between lines 55 and 68 to confirm that it is finding the expected files, and finding the expected words within those files.
JamesCherrill
Posting Genius
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
I took the code and tried it, it worked fine for me. Though, I got an error when compiled after I just copied and pasted the code because my box is Linux. I need to change the code from
fr = new FileReader(path+"\\"+files);
to
fr = new FileReader(path+"/"+files);
in order to get it read what I need. Also I changed the read in path (what I used was the same path as the Java class's).
I'm guessing that your "hard-coded" directory that you passed into your textselector() could be wrong. In other words, it may be interpret by Windows. I remember that Windows once confused and changed directory string from "Program Files" to "Progra~1"... Not sure if it is the case...
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239