Hi!
I have recently (2 months ago) started to learn
java altought I have already experience of another languages. One of the things that I don't have experience in, is threads and I'm trying to develop an application and I think the problem is related with threads. Let me explain.
I'm developing an application to work on lottery statistics with the possibility to filter the combinations result using filters.
So, the user picks numbers from a range and my software will get each combination possible, check it against the filter(s) condition(s) and add the combination to a list or a file.
At the moment, I have all this implemented (with just one filter...) but the problem is that the GUI hangs because I'm not using threads. The process is very quick at the moment, even with many more filters. The problem is that I don't want the GUI to hang up.
So, my question is: how can I implement this with threads (or any other solution that doesn't hang up the GUI)??? Where do I implement the
thread or threads? In the MainWindow class? In the Filters class?? On both?
Those are my doubts about Threads in java.
Here is my code: