How to invoke thread2 after the thread1
I am trying to create a Java Desktop Application that validates GML file as my thesis.
Right now, I am phasing to log all the errors found in the thread1 (extends SwingWorker)
thread1: (it may call simultaneously)
1) validate gml file.
2) log the errors to a Vector.
3) when it is finished, call the done() method. Then would like to call the thread2 (SwingWorker or implement Runnable Interface - not yet decided) to write all the Vector contents to a log file.
in the number 3), I am thinking of creating a synchronized method to write a file instead of the creating thread2. So that, I may able to retain the arranged errors(Vector's contents).