//this is setting up the main listener.. in the main listener, there are
//two controls.. either downloadAdded or downloadRemoved.. at that point
//we can pick up on a 'download' and add an additional listener to it
//to listen for changes in its state.
DownloadManagerListener dml = new DownloadManagerListener()
{
public void
downloadAdded(
final Download download )
{