Patch for ProgressDialog to work on JRE 1.6
Brought to you by:
mcarniel
JSqlTool 1.1 (fix version) doesn't work properly on Java 6 (JRE 1.6). The main problem I've encountered is in the ProgressDialog class: it attempts to reuse a private Thread in a way that is not compatible with JRE 1.6. This patch fixes the startProgress() and startProgressNoClose() methods to work properly for JRE 1.6.
ProgressDialog patch
Logged In: YES
user_id=953665
Originator: YES
I didn't do a good job of describing the symptoms fixed by this class. When the user attempts to connect to a database (running in a JRE 1.6 VM), the progress bar dialog opens and does not close. The application does not populate the Schema window with a list of schemas / tables. Internally, an IllegalStateException is thrown when the private Thread's start() method is called, but it is not caught and reported in the UI.
Logged In: YES
user_id=440250
Originator: NO
Apparently this problem also appears on recent builds of JRE 1.5. I encountered it on 1.5.0 build 12. This patch fixed that, too.