CS 18000 Chapter Notes - Chapter 15: Layout Manager, Abstract Window Toolkit, Event Dispatching Thread

54 views5 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents