Meandering Out Loud

Don Thorp’s Musing, Muttering, and Mischief Along a Random Path

Swing Threading

The article Rethinking Swing Threading by Jonathan Simon provides a good description on how to use event based programming to simplify your Swing development.

I used a similar method in the past and it worked very well. My only addition to what he did was to add a Job system for handling the tasks. Basically, I wrote a Task for each operation that I wanted to perform in the system and handed it off to the job manager to execute and monitor. In addition to being able to simplify the Swing code, it made it possible to easily annotate the task with any exceptions that occurred for use in displaying errors to the user.

Post Metadata

Date
October 31st, 2003

Author
Don Thorp

Category

Tags

Leave a Reply