This post originated from an RSS feed registered with Java Buzz
by Scott Delap.
Original Post: An Exampe of Multi-threading Swing Code
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Slobodan blogs on converting a long running command in his Swing application to be multi-threaded. Since he is using his progress components to block UI interaction while this process is running, it looks like he has things running synchronously. Foxtrot would also be a valid option in this case. However, it would be missing the pretty notification effects he is displaying.
Swing Scalability I may not post on a regular basis as I have been busy reading other peoples blogs. So much stuff, so little time. One of the interesting discussions is about Swing and SWT. Don't have links handy, should be easy to find. The perennial criticism of Swing is that it is slow. Again, there are plenty of articles and blogs, so I won't repeat what has already been said elsewhere. Instead, I'll show you an example of a performance issue and how I tried to solve it in Swing.
Some time ago I talked about a set of progress components. I thought I knew of all (most) of the commands in my app that take a long time and made use of the component therein. Then I realized that are still more commands which are not so obvious, as their initial performance may seem fine (quick)...