PHONE BOOK APPLICATION
This project is developed using Java Swing Components. This is show how you can develop an
application using swing components of Java2.
Components
The following are the required programs in this application.
PhoneEntry.java
This file contains the class PhoneEntry. This class is used to store the data about a single phone
Source Code
PhoneBook.java
This is the main class in this project. It contains PhoneBook class. PhoneBook class contains
a vector to store a collection of PhoneEntry objects.
This class contains a collection of method such as Add , Delete, writeToDisk etc.
An object of this class is created at the beginning of the application and used throughout
the application.
Source Code
MainFrame.java
This displays a frame that contains menu bar and tool bar to allow user to invoke all possible
actions.
Source Code
NewPhone.java
This displays a frame to allow user to enter the data related to a new phone entry and writes
the data into phone book.
Source Code
UpdatePhone.java
This displays a frame to allow user to select a phone entry by name. Displays the details
of the selected name and allows user to modify the details and save them to phone book.
Source Code
DeletePhone.java
Allows user to select the entry to be deleted and deletes the entry from the phone book.
Source Code
ListPhones.java
This displays a frame that contains the details of all phone entries from Phone book.
Source Code
SearchPhone.java
Allows user to enter a patter and search for phone entries based on the pattern.
Source Code
Procedure
Follow the procedure given below to download, compile and run the program.
- Download all PB.ZIP file that contains all .java files and a sample PHONES.DAT file by clicking here .
- Compile all .java files using Java Compiler.
- Run MainFrame using Java MainFrame
- Select options from Action and Reports menus and test them.