How to Use Models (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
MostSwingcomponentshavemodels.Abutton(JButton),forexample,hasamodel(aButtonModelobject)thatstoresthebutton'sstate—whatitskeyboardmnemonicis,whetherit'senabled,selected,orpressed,andsoon.Somecomponent