Ok, you have the logic to do the search.
Now You need to rewrite the code so it is called on a thread from the action listener
Your old method name of search is better than run.
Type: Posts; User: Norm
Ok, you have the logic to do the search.
Now You need to rewrite the code so it is called on a thread from the action listener
Your old method name of search is better than run.
The version you posted extended Thread. That is the one that needs testing and debugging.
Or you need to change the code that creates the FileSearch object to do it in a new Thread instead of...
Try debugging your FileSearch class as a standalone program to be sure it does what you want. Try adding this main() method to your code and adding printlns for all the places where you add Strings...
Can you explain what it does do?
Does the run method get executed?
Can you post ALL of your current code?
Learned something new today. Never thought about when a static block is called relative to the calling of the constructor or the main method.
A note in your code could help a newbie understand what...
There are classes that will "layout" the components in a container called layout managers.
Read the tutorial about the different choices and how to use them.
Go to this site and Find Layout
The...