CS 106A Lecture Notes - Lecture 24: Dialog Box, Abstract Window Toolkit, Firstclass

27 views2 pages

Document Summary

Graphical user interfaces with swing: java gui history. Newer gui library with more powerful features. Both awt and swing exist now; have to use both in various places. Stanford has built some graphical libraries on top of awt/ Window: a first-class citizen of the graphical desktop. Component: a gui widget that resides in a window. Also called controls or interactors in many other languages. All components that are used in gui start with j. Component properties: each can use get (or is) accessor and a set modifier method (check slide, jbutton. A clickable region for causing actions to occur: window regions. The content of a graphical program is divided into five regions. You can add a component to a region of the graphical window by calling: add(component, region): program w/ events. When writing a graphical program that handles action events on its components, extends graphicsprogram to extends.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents