swing GUI and method integration.