<p>This method implements an awt or swing listener and performs time 
consuming operations. Doing these operations in the gui thread will cause the
interface to appear sluggish and non-responsive to the user. Consider
using a separate thread to do the time consuming work so that the user
has a better experience.</p>