Fundamentals of Software Development CT010-3-1: Java API and Class Libraries The Abstract Window Toolkit
Fundamentals of Software Development CT010-3-1: Java API and Class Libraries The Abstract Window Toolkit
Development
CT010-3-1
Java API and Class Libraries
The Abstract Window Toolkit
Prepared by: NR First Prepared on:21 st July 2005 Last Modified on:15th December 2005
Quality checked by: GTK
Copyright 2005 Asia Pacific University College of Technology and Innovation
Introduction to Applets
Difference between an applet and an application
Drawing methods
Executing applets
TextField
TextArea
Button
Choice
List
Checkbox
CheckBoxGroup
Label
Learning Outcomes
At the end of this topic, you should be able to:
Implement the usage of various classes
Write applet programs using the drawing
methods available
State and explain the various GUI
components learnt
Create, edit, compile, run and debug simple
Java programs implementing GUI
components.
CT010-3-1 Fundamentals of Software Development
Key Terms
If you have mastered this topic, you should be able to
use the following terms correctly in your assignments
and exams:
Applet
Application
AWT
GUI
TextField
TextArea
Button
Choice
List
Checkbox
CheckBoxGroup
Label
CT010-3-1 Fundamentals of Software Development
Introduction to Applet
Differences:
Applet
Application
Overview of an Applet
Every Applet is implemented by creating a
subclass of the Applet class.
Hierarchy of an Applet:
java.lang.Object
java.awt.Component
java.awt.Contanier
java.awt.Panel
java.awt.Applet
CT010-3-1 Fundamentals of Software Development
Drawing in Applets
Drawing Methods:
Drawing in Applets
The predefined colors include:
white
black
blue
yellow
lightGray
red
green
gray
pink
magenta
darkGray
Orange
cyan
Introduction to Applets
Difference between an applet and an application
Drawing methods
Executing applets
TextField
TextArea
Button
Choice
List
Checkbox
CheckBoxGroup
Label
Next Lesson
The Abstract Window Toolkit
Using Layout Managers
FlowLayout
GridLayout
BorderLayout
Sample Programs