While programing in Dynsolve I try to bother the busy animation and progress bar in the status bar in Netbeans IDE. I found a remarkable solution which I've not dared to finish reading on:
http://old.nabble.com/How-to-activate-the-busy-animation-in-the-status-bar--td19435912.html
A real ambitious German geek answered the question "How to activate the busy animation in the status bar". It goes so deep that he could suggest SUN to include the answer into its on-line help document.
Yesterday I came out a simple version of the solution in which one does not need to interfere with the org.jdesktop.application.Task class. I do have some task such as 'plot nodes' that required to run in the background but they're not so time consuming. It doesn't worth extending the Task class and overriding those method for each short life task.
One could find an easy way to activate the busy animation in the constructor of the xxxView. The default code under the comment
// connecting action tasks to status bar via TaskMonitor
tells you how to active it:
if (!busyIconTimer.isRunning()) {
statusAnimationLabel.setIcon(busyIcons[0]);
busyIconIndex = 0;
busyIconTimer.start();
}
progressBar.setVisible(true);
You could add this code in you own thread.