minor changes to the swing-application example.