CMP 363 Advanced Programming (JAVA)
BCIS, 5th Semester
Course Objectives
This course aims to develop students with knowledge of advanced features of java for making
familiar with desktop and web based application. Basic knowledge of programming in Java is
expected from students. This course should be associated with laboratory experiments to
augment the concepts taught in the class.
Course Description
Introducing the AWT, Using AWT controls, Layout Managers, and Menus, Events handling,
Introducing Swing, Exploring Swing, The Applet Class, JDBC, Introduction to J2EE, Servlet
Programming, JSP Programming.
Course Outcomes
On successful completion of this course, students will be able to:
Develop a complete GUI (Graphic User Interface) based system;
Develop web based applications;
Orient themselves towards android based programming;
Develop, compile, and execute java programs using arrays and recursion;
Develop, compile, and execute java programs manipulating strings and text documents;
Develop, compile, execute java programs that include GUIs and event driven
programming; and
Demonstrate a final project using applets for inclusion in web pages; applets to access
enterprise data bases in robust.
Course Contents
Unit I: Introducing the AWT 3 hours
AWT classes
Window fundamentals
o Component
o Container
o Panel
o Window
o Frame
Working with frame Windows:
o Setting the Windows dimensions
o Setting a Windows title
o Hiding and showing
o Closing a Frame Windows
Unit II: Using AWT controls, Layout Managers, and Menus 6 hours
AWT Control Fundaments
Adding and removing controls
Responding to controls
o Labels, buttons, checkboxes, CheckboxGroup Choice, Lists, Scroll bars, textfield,
testarea,
Understanding Layout managers
o FlowLayout, BorderLayout, GridLayout, CardLayout, GridBadLayout
Menus Bars and Menus, Dialog boxes, FileDialog boxes
Unit III: Event handling 6 hours
Two event handling mechanisms
The delegation event model
o Events
o Event sources
o Event listeners
o Event classes
ActionEvent class, Adjustment Event class, ContainerEvent class,
FocusEvent class, ItemEvent class, MouseEvent class, KeyEvent class,
TextEvent class, WindowEvent class
Sources of Events
Events Listener Interfaces
o ActionListener, Adjustment Listener, Container Listener, FocusListener,
ItemListener, MouseListner, KeyListner, TextListener
Using Delegation event model
Handling mouse events
Handling keyboard events
Handling ActionEvent of all components
Adapter classes, inner classes
Unit IV: Introducing Swing 3 hours
The origins of swing, swing is built on the AWT
Two Key Swing Features
The MVC connection
Components and containers
Unit V: Exploring Swing: 3 hours
JLabel and ImageIcon. JTextField, JButtons, checkboxes, radio buttons,
JTabbedPane, JList, JComboBox, JTable
Two typesof applets
Unit VI: The Applet Class 4 hours
Applet basics
The Applet class
Applet Architecture
An applet skeleton
The HTML applet tag
Passing parameters to applets
Unit VII: JDBC 6 hour
Database Basics
Structured Query Language
o Creating a table
o Inserting Data
o Updating records in table
o Retrieving record in table
o Retrieving records from table
o Deleting records
Database Driver
o JDBC-ODBC bridge
o Party Java Partly Native Driver
o International Database Access Driver Server
JDBC API
o Creating a table
o Inserting Data in Driver
o Reading Data
o Deleting Data
o Prepared Statement
Unite VIII: Introduction to J2EE 3 hour
Core J2EE Technologies
Enterprise Application Architecture
o 2-Tier Architecture
o 3-Tier Architecture
o N-Tier Architecture
o Enterprise Architecture
J2EE Application Service
Unite IX: Servlet Programming 7 hour
HTTP
o Get Request
o POST Request
Server Slide of the Web Application
Web Container
o Structure of a web application
Servlet Technology
o Servlet
Deployment Description
Step for writing a servlet
Servlet initialization
Reading HTML form data
Session Management
o Creating session
o Storing data in session
o Reading the data from session
o Destroying the session
Request dispatching
o The forward()method
o The include()method
Unit X: JSP programming 7 hour
JSP Basic
o JSP Directive
o JSP Declaration
Implicit Objects
Java Beans in JSP
o Jsp:useBEan
o Jsp:setProperty
o Jsp:getProperty
Basic Text
Kosuri Phani, Java & J2EE Made Easy, North Carolina: Lulu Publications.
Reference
Herbert Schildt, Java the complete reference, New Delhi: Mcgraw-Hill Education.