Hi folks,
Please forgive a bit of a n00b question, but I'm working with the SwingWorker class and want to create a subclass of this which includes an input type, as well as the existing output and progress-message types (so basically I'd have "CTSwingWorker< I, O, M >"). Now, I'm aware that execute() gets called on a seperate thread than doInBackground(). What I want to do is provide 2 new methods to the CTSwingworker class:
public void execute( I input ) {...}
protected abstract O doInBackground( I input );
The snag is, I would need to make the input thread-safe, so my question is, how do I go about this?
Thanks, Lee.