I think I have a thread issue, and I'm hoping someone can help me with it.
I create a thread and start it.
static Thread downloadScoresThread;
Runnable r2 = new DownloadScoresRunnable();
downloadScoresThread = new Thread( r2 );
DownloadScoresRunnable() contains run(), which itself contains three methods. (Two of these methods access databases, and the third method displays the results.)
After starting the above thread, the main thread opens a new JPanel to hold the results fetched from the databases.
This does NOT work; specifically, I fetch the results from the databases and open the JPanel, but the results are not displayed.
If I instead simply call the three methods in DownloadScoresRunnable() in lieu of the thread, everything works as desired.
Does anyone have any ideas why the thread is not doing what it is supposed to do?