How to use Guice in Swing application
问题 I have a Swing application that I would like to convert from spaghetti to using dependency injection with Guice. Using Guice to provide services like configuration and task queues is going great but I'm now starting on the GUI of the app and am unsure of how to proceed. The application is basically a JFrame with a bunch of tabs in a JTabbedPane . Each of the tabs is a separate JPanel subclass that lays out the various components and needs services to perform actions when certain buttons are