Closer Look at Swing. Where is MVC?
by, 04-26-2012 at 08:42 PM (675 Views)
Model delegate which a common MVC flavor is being implemented by the internally swing, which coalesces controller and view to UI delegate. Rarely, developers deal with controller or view part while applications are being written. Instead they deal with components.Swing components are not at all the part of MVC but they are considered as mediators present b/w view, model and controller.
Custom coding is involved in building of the components and model creations to communicate to the sub components or to synchronize the model and view. Resulted components comprise of mixture of code which deal with view, controller and model tasks.
Swing components are great job doers for separation of look & feel, from applicationís logic. However MVC split is easily lost by them at application level and usually they endup with a spaghetti of codes, by performing several non relevant tasks. In case of complex applications, problem is more severe as every component possess sub elementís dzones which require own handlings.