Documente Academic
Documente Profesional
Documente Cultură
By
-Ashtosh Jha
-Gaurav Asati
-Prabhakar Sharma
What is Address Book
• Address Book is book or database
used for storing entries called contacts
• Each contact entry usually consists of
a few standard fields for eg name,
address, phone no. etc
• The operations like adding, sorting,
searching, deleting etc is done on the
entries
Why Address Book
• A software Address Book is easier to
use than a paper Address Book a
variety of operations can be
performed easily on it.
• Address Book is thing which is useful
to all users as being social entities
from a child to an old man all have
contacts and it provides an easy tool
to manage contacts
• Java provides platform independency
so use of java in this project has
increased its dimensions
• This Address Book is for online and
offline both users
JAVA
• It was developed by James Gosling at
Sun Microsystems and was released
in 1995
• Architectural neutral and portable
• Robust and secure
• Interpreted and threaded
JVM
• A Java Virtual Machine (JVM) is a set of
computer software programs and data
structures that use a virtual machine model for
the execution of other computer programs
• Bytecode is the jvm’s version of machine code
• Jvm not only runs java generated bytecode
• Jvm provides ‘write once run anywhere’ to java
programs
Address Book-The Project
• There are 3 classes
-AddressBook
-OperationHandler
-Contact
AddressBook
• Implements ActionListener.
• Make frame.
• Add panel.
• Add menu.
• Create reference of OperationHandler.
AddressBook Methods
• Constructor
-Create frame for AddressBook
-Set position of frame
• Add widgets
-Add buttons to panels
-Options & Help to upper panel
-Add, Delete ,Search ,Sort ,View all
to lower panel
-Join each button to corresponding
action.
• Action Performed
-Ladder of IF-ELSEIF
-Catch correct action
-Call Operation Handler methods
Contacts
• Implements Serializable.
• Create variables to store values.
-first name, last name, nick name
- e-mail, phone number , address
-birthday.
Contacts Methods
• Defines Setter & Getter methods.
- All these methods are public
- All variables of type string
-Set the values for all variables
Operation Handler