tailieunhanh - Object Oriented Programming - Lesson 12.1: GUI and Event Programming

Object Oriented Programming - Lesson : GUI and Event Programming understand the concept of “GUI Progamming”, understand the concepts of “Container” and “Component”, know how to create AWT containers and AWT components, know how to organize AWT components inside an AWT container. | LESSON XII-1. GUI and Event Programming Trinh Thanh TRUNG (MSc) trungtt@ 1 Objectives • After this lesson, students (learners) can: – Understand the concept of “GUI Progamming” – Understand the concepts of “Container” and “Component” – Know how to create AWT containers and AWT components – Know how to organize AWT components inside an AWT container. – Understand how to handle AWT events, using different ways – Write many demo AWT applications. 2 Content I. Introduction II. Programming GUI with AWT III. AWT Event-Handling 3 I. Introduction • A graphical user interface - GUI (pronounced "GOO-ee"): – is a type of user interface – allows users to interact with electronic devices using images rather than text commands • Why use term GUI? – The first interactive user interfaces to computers were not graphical 4 1. Introduction Menus Title bar Combo box Menu bar Button Scroll .