Refactored swing code into guice module.