These are the notes of Advanced Programming (JAVA) with course code CMP 363 abided by the syllabus of Pokhara University for BCIS. Click on the links below to check out the notes.
Course Contents
Unit I: Introducing the AWT (3 hours)
Window fundamentals
- Component
- Container
- Panel
- Window
- Frame
- Setting the Windows dimensions
- Setting a Windows title
- Hiding and showing
- Closing a Frame Windows
Unit II: Using AWT Controls, Layout Managers, and Menus (6 hours)
AWT Control Fundaments
Adding and removing control
Responding to controls
- Labels, buttons, checkboxes, CheckboxGroup choice, lists, scroll bars, textfield, textarea,
Understanding Layout managers
- 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
- Events
- Event sources
- Event listeners
- Event classes (ActionEvent class, Adjustment Event class, ContainerEvent class, FocusEvent class, ItemEvent class, MouseEvent class, KeyEvent class, TextEvent class, WindowEvent class)
Sources of Events
Event Listener Interfaces
- ActionListener, Adjustment Listener, Container Listener, FocusListener, ItemListener, MouseListener, WindowListener ,KeyListener, 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, JToggleButton, checkboxes, radio buttons, JTabbedPane, JList, JComboBox, JTable
- Two types of 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 hours)
Database Basics
Structured Query Language
- Creating a Table
- Inserting Data
- Updating records in the table
- Retrieving records from a table
- Deleting records
Database Drivers
- JDBC-ODBC bridge
- Party Java Partly Native Driver
- Intermediate Database Access Driver Server
JDBC API
- Creating a table
- Inserting Data in table
- Reading Data
- Deleting Data
- Prepared Statement
Unit VIII: Introduction to J2EE (3 hours)
Core J2EE Technologies
Enterprise Application Architecture
- 2-Tier Architecture
- 3- Tier Architecture
- N-Tier Architecture
- Enterprise Architecture
J2EE Application Servers
Unit IX: Servlet Programming (7 hours)
HTTP
- GET Request
- POST Request
Server Side of the Web Application
Web Container
- Structure of a web application
Servlet Technology
- Servlet
Deployment Descriptor
Steps for writing a servlet
Servlet initialization
Reading HTML form data
Session Management
- Creating session
- Storing data in session
- Reading the data from the session
- Destroying the session
Request dispatching
- The forward() method
- The include() method
Unit X: JSP programming (7 hours)
1. JSP Basics
- JSP Directives
- JSP Declarations
2. Implicit Objects
3. Java Beans in JSP
- jsp:useBEan
- jsp:setProperty
- 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.