I have what is probably a common problem that many of you have experienced. I've been coding in Java for only 8 or 9 months so I'm just dangerous enough to cause myself a problem every now and then. What I'm experiencing is the following:
I've written an application to maintain parts inventory for our company. It connects to a sql database to retrieve information and every query to the database is triggered by a user action of one sort or another. On rather large queries that take a little time to process and return data, I would like my swing interface to not stop updatting and still allow user-interaction.
What I "thought" my solution would be is the following:
I implemented runnable on my main-window application (which has several dozen smaller JPanel extended classes within a cardlayout) and then in my main, I just created an instance of the main window class and called .run (which contains MainClass.show() ).