Courses
Java
Home
Corporate
Consulting
Contact Us
Courses
Jobs
Custom Topics

Customize this course,
choose your topics

Building Your Course
Custom Order Page
Building Guidelines

Selectable Topics
Advanced Applets
Advanced AWT
Collections
CORBA
Custom Components
Drag'n Drop
Enterprise JavaBeans
Event Delegation
GridbagLayout
InfoBus
Inner Classes
Internationalization
Java 2 Overview
JavaBeans
JFC Overview
JSP (Java Server Pages)
JSP Tag Libraries (taglib)
JDBC
JNI
RMI
Security
Serialization
Servlets
Struts
Swing
WebServices Overview
XML

AWT 1.1 Event Delegation Model

The AWT 1.1 Event Delegation Model was introduced in Java 1.1 as a new, improved way of handling events. The model is cleaner, more scalable, easier to use, and less error prone than the older inheritance-based mechanism provided in Java 1.0.

The Event Delegation model is now supported by Netscape Navigator (v 4.06 and later) and is the preferred way of handling events. The model is also used in JavaBeans. (Beans which generate events follow this model).

This module is usually taught in our Ultimate Java Programming Workshops. If you have attended this course, you may not need this material to be covered in your custom advanced course. Whereas, if you have been using Java 1.0, and need to be brought up to date with Java, and/or need to learn some advanced mechanisms, this module is essential.

Objectives

  • Learn how to use the new event model introduced in AWT 1.1
  • Know the problems with the old model, and benefits of using the new model
  • Employ "event source" and "event listeners"
    • use the new event classes
    • use the new adapter classes
  • Use anonymous inner classes as event handlers
  • Handle events on all the major components, including Windows, Buttons, Lists, Scrollbars, TextComponents.
  • Handle mouse events
  • Use the setActionCommand() in Buttons.
  • Be able to implement several different event-handling designs

Specifications

  • Duration (total): 2 - 2.5 hours
    • Duration of Exercises: 1 hour - 1.5 hours
    • Duration of Lecture: 1 hour

Pre-requisites

  • Inner Classes
  • An understanding of GUI Layout and basic components. You should be able to use the following:
    • Layout managers - FlowLayout, BorderLayout, GridLayout
    • Components - Button, TextArea, TextField, TextComponent, Label, and Menus
    • Containers - Panel, Window, Frame, and Container
  • The ability to nest layout managers

A table of contents of this module is available upon request.

Return to the Custom Order Page.

Copyright ©2007 by Petronio Technology Group, Inc. All rights reserved. Petronio, "Targeted Technology Training", "T3" and "Turning new technologies into your competitive advantage" are trademarks of Petronio Technology Group. All other trademarks are the properties of their respective companies.