G6DICP - Lecture 18 - PowerPoint PPT Presentation

About This Presentation
Title:

G6DICP - Lecture 18

Description:

G6DICP - Lecture 18 AWT Components Components Components are classes that represent GUI elements Instances of the class represent specific elements Encapsulation ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 4
Provided by: TimBrai
Category:

less

Transcript and Presenter's Notes

Title: G6DICP - Lecture 18


1
G6DICP - Lecture 18
  • AWT Components

2
Components
  • Components are classes that represent GUI
    elements
  • Instances of the class represent specific
    elements
  • Encapsulation makes them self-contained
  • Components are added to containers
  • For example Frame
  • add() method of containers
  • Usually in constructor of Frame subclasses
  • NEVER in paint()

3
Major AWT Component Classes
  • All in AWT package
  • All subclassed from class Component
  • Label
  • Button
  • TextField
  • TextArea
  • CheckBox
  • Grouped
  • Ungrouped
  • List
  • Choice
  • Menus
Write a Comment
User Comments (0)
About PowerShow.com