Basically, the Swing component itself is a controller that has a reference to the view and model.
The view is in a field JComponent.uithat is inherited by all swing components and is used by the Look & Feel mechanism to provide various visual representations of the Swing components.
Different subclasses have different methods setModel()that use different types of models, such as TableModelor ButtonModel, which can be implemented by a programmer to contain actual data displayed and controlled by the Swing user interface.
source
share