how to stop org.jdesktop.application.Task started using @Action public Task?

View: New views
1 Messages — Rating Filter:   Alert me  

how to stop org.jdesktop.application.Task started using @Action public Task?

by Mike-Mike :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello
I am using org.jdesktop.application.Task from NetBeans 6 in my app.
I start Task with jButton using @Action:
@Action public Task startClusteringTask()
{
        ...
        return myTask;
}

Is there any way to stop this task when it is running?
Thank you in advance
Mike