Is there any framework/tool that we can use to create Java Swing application as module based? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionWe want to make our current Java Swing application as module based so that it can be loaded from configuration files.
Is there any framework/tool that helps in making our application as module based? I mean big components like JTextPane, JTable we can make as a module and load them wheneven required.
The Spring Framework may help. The following article has details: Spring: How to Create Decoupled Swing Components
You can also check out the spring-richclient project.
Modules is a design term. Create well designed application and call groups of classes "modules". You can pack your modules in separate jar file and then put them into classpath as your wish. This will give you some flexibility.
You can use injection framework like Spring or Guice. This allow you to decouple your components.
You can make use of JGoodies along with Google Guice.
Google Guice will give you the ability to break up your application in modules.
I like using JGoodies as it is easy to use and doesn't have a big dependancy list.
精彩评论