Hello,
I have an assignment to implement a few text searching algorithms. I've completed that, and have a few days before I need to turn the project in, so I thought I'd add a little bit of window dressing to this console solution.
The requirements state for the user to input a
pattern to match via the console. I have written a separate class to implement a simple GUI in order to collect that user input. The problem I am having is that while my GUI is waiting for me to enter the pattern, my driver class that calls all of my text searching algorithm classes ( and the GUI class too ) continues to run behind my GUI. This does not last long though, since without a pattern to process, I get a null exception.
Given this simple requirement of waiting for text to be entered, what should I read up on? Do I put my driver class into a
thread and have it wait for the GUI class? My knowledge of Threads is minimal at best, so I don't even know if Threads are the best way to solve this.
I need someone to point me in the right direction. :-)
Thanks for the help.
BD