java - Separate thread for SQL DB Queries -


i writing application have regularly poll sql database latest entries. these entries translated java objects , passed gui represent them graphically.

i have databasemanager class query db needed, these methods don't return until after query , translation complete. causes gui hang immensely.

i set run sql queries in separate thread. offer guidance?

see http://java.sun.com/developer/technicalarticles/javase/swingworker/


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -