Java Programming
Java Programming
Course Synopsis: A study in Java language techniques beyond the introductory course.
Emphasis will include GUI and event-driven programming, Database Connectivity, Socket
Programming, Remove Method Invocation and JSP Technology.
Goal: The purpose of this course is to present the concept of GUI programming and JDBC,
Socket programming and remote objects, and JSP Technology. Since software components
are best learned by implementation, each student will complete a project independently which
will involve the design and implementation of three software components.
2.1 Swing and MVC Design Patterns: Design Pattern, MVC Pattern, MVC Analysis of
Swing Buttons
2.2 Layout Management: Border Layout, Grid layout, Gridbag Layout, Group Layout,
Using NO layout managers, Custom layout Managers
2.3 Text Input: Text Fields, Password Fields, Text Areas, Scroll Pane, Label and
Labeling Components
2.4 Choice Components: Check Boxes, Radio Buttons, Borders, Combo boxes, Sliders
2.5 Menus: Menu Building, Icons in Menu Items, Check box and Radio Buttons in
Menu Items, op-up Menus, Keyboard Mnemonics and Accelerators, Enabling and
Disabling menu Items, Toolbars, Tooltips
2.6 Dialog Boxes: Option Dialogs, Creating Dialogs, Data Exchange, File Choosers,
Color Choosers
2.7 Components Organizers: split Panes, Tabbed Panes, Desktop Panes and Internal
Frames, Cascading and Tiling
1.1 Introduction: Standard Event Handling, Using Delegated Class, Using Action
Commands, Listener Interfaces, Adapter Classes
1.2 Handling Events: Action Events, Key Events, Focus Events, Window Event, Mouse
Event, Item Events
5.1 Networking Basics: Transmission control Protocol (TCP), User Datagram Protocol
(UDP), Ports, IP Address Network Classes in JDK
5.2 Working with URLs: Connecting to URLs, Reading Directly from URLs,
InetAddress Class
5.3 Sockets: TCP Sockets, UDP Sockets, Serving Multiple Clients, Half Close,
Interruptible Sockets, Sending Email
Text Books:
1. Cay Horstmann and Grazy Cornell, Core Java Volume – I Fundamentals, Eighth Edition
2. Cay Hortsmann and Grazy Cornell, Core Java Volume – II Advance Features, Eighth
Edition
Reference Books:
1. Steven Holzner, Java 2 Programming – AWT, Swing, XML and Java Beans Black Book,
Dreamtech Press
2. Pallvi Jain and Shadab Siddiqui, J2ee Professional Projects, Premier Press
Laboratory Work:
Student should design at least two Projects. Desktop Application (Address Book, Library
System, etc.), Simple network Application (e.g. Chatting Application) or Simple Web
Applications (online banking application, Online Music Application, etc.)
Section A
Section B
9. Write a program to Design an interface containing fields User ID, Password and Account
type, and buttons login, cancel, edit by mixing border layout and flow layout. Add events
handling to the button login and cancel such that clicking in login checks for matching
user id and password in the database and opens another window if login is successful and
displays appropriate message if login is not successful. Clicking in cancel terminates our
program.
10. Compare and contrast between Servlets and Java Server pages? How web server responds
to servlets and JSP page? Write down sample example. Handling HTTP Request and
Response using servlets.