tanya nash wrote:the console displays the results but the GUI actually does not
1. You'll get better help sooner if you post an
SSCCE. Your posted code has just too many lines that are totally unrelated to the posted problem.
2. Programming isn't magic. I don't see any code that might attempt to show the result in a GUI component.
3. Even when you sort that out, tying up the EDT with a tight loop will likely prevent any intermediate updates to the GUI. For more, read
Concurrency in Swing.
Now if you want more help, get rid of all the dross and post an abbreviated (but compilable/executable) code that is limited to your stated problem.