One minute Description

What is Swing Glue?

  • Swing Glue is an ultra thin decoupling layer
  • It allows decoupling of view model and controller by the usage of IoC
  • It is not another MVC concept layer for Swing

What does Swing Glue do?

  • Swing Glue allows to write all Event handling code from JComponents in separate Classes that implement an interface of type Adhesive
  • Swing Glue uses a simple Iversion of Control concept to populate setter of classes to reduce dependencies.

How do I use Swing Glue?

Swing Glue comes as a simple API jar. It provides You with a Factory to create the necessary Glue object.

All you have to do is implement Adhesive classes (Business Logic classes) and register all necessary JComponents in the glue instance. Once all necessary JComponents are registered the Glue component will take care of the instanciation of Your Adhesive implementation. And of course populate all JComponent setters with the respective JComponent in your Adhesive class.

Why should I use Swing Glue?

  • To have a better maintainable Swing Gui with a more structured MVC layout.
  • reduce dependency spiderweb's in your Swing Application (Don't we all love them Event handlers...)
  • And all that with no extra cost. No dependencies to any non testable container structures.

Next: Two Minute Tutorial