A more thread safe swing application.