SwingWorker appropriate

Mario Schroeder <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CADLoReoxk_vZG+2bUzioNXJLN3coKt7J-0jUMuLSZYPRs2BUTA@mail.gmail.com>
Hi,

I have the following use case:

I want to start a long running task in a background thread when the user
clicks on an 'ok' button of my dialog. When the process finishes succesful
the result shall be populated via Lookup.
But when the user clicks on cancel the tasks should be canceled too, and
the result should not be populated, or if accidently populated simply
removed.

My scenario works fine with a SwingWorker.

But I'm having trouble when I use the RequestProcess of NetBeans.

My question: Is the SwingWorker appropriate for the Plattform, or should I
continue to try my luck with the RequestProcessor?

Regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.