• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Swing Listeners and Events

Recall from the earlier sections of this chapter, "Using the Abstract Windowing Toolkit" and "The Swing Architecture," that one of the distinctives of the JFC is the delegation event model. Although the AWT components can still use the now-deprecated JDK-1.0 model for communicating about actions, Swing components use only the delegation event model. In fact, Swing takes the delegation event model to new heights, based on the Model-View-Controller (MVC) design pattern.

Note

To learn more about MVC, see Chapter 13 of Using Java 1.2 (Que, 1998).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint