Modal dialog putting thread to sleep?

From: steve (me_at_me.com)
Date: 01/30/04


Date: Fri, 30 Jan 2004 22:49:42 +0800


        Hi,

I am putting together a program that reads a csv file, and stuffs it into a
database.

I want a progress bar to display as the csv file is being read in.

the way i have done this is to extend the JDialog class, with a routine that
reads the CSV file.

i then start an new thread , in which i call my extended JDialog, because it
is a thread any, update to the progress bar gets performed.

this works fine.
but to prevent the user from bringing forward any other windows in the app, i
have made the extended JDialog class open as modal, as soon as i do this the
thread freezes and stops the progress bars & the reading in of the CSV , even
though they are in their own thread.

any ideas?

steve