Click to See Complete Forum and Search --> : JDialog and background operation


agniputhran
May 2nd, 2000, 04:46 AM
Hi,

I need to display a JDialog with a 'cancel' option while a background job is done over the network.

If the user presses 'cancel' I need to cancel the background operation.

If the background op. completes successfully or with error, I need to close the JDialog and display sppropriate success/failure message.

I tried this with the background job in a thread and the JDialog in the main thread. but i couldnt link these two operations.

any ideas...

bhuvan.