CS 18000 Chapter Notes - Chapter 15: Layout Manager, Abstract Window Toolkit, Event Dispatching Thread
Document Summary
New style: user directs program what to do next. Program must respond to a variety of user-initiated events: keystrokes, button clicks, mouse movements. Divides responsibilities into three pieces: model. The data (or database) underlying the application: view. The gui components visible to the user: controller. The glue that implements the business rules of the application. Controller: updates view when the model changes. Updates model when user interacts with view. A gui is composed of a hierarchical set of interface elements called components or window gadgets (widgets: top level. A window that interact with the user"s desktop: inside a frame. A panel to layout the top-level components: then come the interface widgets. A panel is also a widget, to permit creation of sub-layers. Two approaches to using: create raw jframe object (what we will use, extend jframe then create the object. Jframe operations setdefaultcloseoperation: window close, use dispose_on_close.