P.O. Box 342-01000Thika
Email: [email protected]
Web: www.mku.ac.ke
COURSE CODE: BIT 2205
COURSE TITLE: OBJECT ORIENTED
PROGRAMMING II
Instructional Manual for BBIT – Distance
Learning
Prepared by Paul M Kathale, [email protected]
2.
BIT 2205: OBJECTORIENTED PROGRAMMING II
COURSE OUTLINE
1. Overview of OOP Technology (Objects and Classes)
• Creating classes
• Class declaration
• Implementing methods
• Creating Objects and using Objects
• Method overloading
• Method overriding
• Inheritance
• Constructors
2. Java Applet Basics
• How Applets and Applications Are Different
• Creating Applets
• Major Applet Activities
• A Simple Applet
• Including an Applet on a Web Page
• The <APPLET> Tag
• More About the <APPLET> Tag
• ALIGNMENTS
• HSPACE and VSPACE
• CODE and CODEBASE
3. Creating User Interface Component
• AWT Component Overview
• Adding Component to Applets
• AWT Components
• Label
• Button
• Choice
• List
• Text Field
• Text Area
• Layout Managers
o Flow layout
o Grid layout
o Boarder layout
o Card layout
o Grid layout
4. Creating User Interface – Swing Components
• A swing Component Overview
• swing Components
• JLabel
3.
• JButton
• JChoice
•JList
• JTextField
• JTextArea
5. Drawing Graphics:
• Shapes: Lines,Circles,Rectangles, Polygons and Colors.
• Swing components
o Jcomponent classes
o Event Listener object
o WindowAdapter classes
o JMenuBar class
o The popupMenu class
o Dialogs
o
6. Retrieving and Using Images
Getting Images
Drawing images
7. Event Handling
• Event Listener Object
• Event Object
• Window Adapter classes
• Extending Window Adapter
• Action Events
• Registering the Listener
• Exception-handler parameters
NB: Implementation language: Java
CATs and Assignments – 30%
Final Examination - 70%