2. INDEX
S .no T opic
1 Acknowledgement
2 Certificate
3 Cover P age
4 Visual M obile
oTechnology Used
5 P roject Design
6 I nterface(M obile.java)
7 M obile.java(start S creen)
Main Menu
Dial Panel
Dial Panel2
Save Panel
ContactsPanel
LogPanel
Notes Panel
EditnotesPanel
Calculator(calcPanel)
3. Ima ge Pa nel
Ful l view Of Sel ect ed
Ima ge(ima gepa nel 2)
8 Code
9 DatabaseS tructure
Callregister
Contacts Table
Notes Table
5. Acknowledgem
entI gratefully acknowledge the valuable
guidance and support given to me by my
informatics practices teacher
Mr./Mrs.….Gauri Gusain……in successfully
completing my project report. This project gave
me a clear insight into real world business
situations and gave me ample opportunities to
apply my theoretical knowledge to practical
situations. I would also like to thank my
classmates for their suggestion and support in
completing this project
7. INTRODUCTION
This project simulates the functionally of a
mobile set visually though java swing
programming. This projects USES DATA BASE
CONNECTIVITY to store call details contact details.
etc. in a MySQL database.
TECHNOLOGY USED
Front end: Java Swing
Back end: MySQL
8. Project Design
This project consist of a single interface(Mobile.java) that
simulates the functionally of a mobile set using many pictures
and a database as evident from its Project window shown
below;
9. INTERFACE (Mobile. Java)
The Mobile. Java Interface Has Been Divided Into Two
Parts;
Upper Panel
Keypad Panel
i.e., Where Lower Panel Is Keypad Panel Which Is Visible
All The Time. The Upper Panel Changes As Per The
Function Chosen E.g., It Displays Dial Panel, save Panel,
contact Panel, notes Panel, calculator Panel Etc.
10. The upper panel itself is divided into tow parts.
Top Panel
<Function>Panel
A sample upper panel is shown below:
There are various function panels e.g., Dial panel, Save panel,
Calculator panel, notes panel etc. in the projects that have
been stored inside TopPanel and these lie over one another
with the help of cardLayout.
11. 1.MOBILE.JAVA
(START SCREEN)
Before Listing The Code, it Is Important To Understand The
Functioning Of The Interface, which Is Being Explained
Below With The Help Of Screen Shots.
12. CODE :
import java.sql.*;
import javax.swing.JOptionPane;
import java.text.*;
import javax.swing.ImageIcon;
public class Mobile extends javax.swing.JFrame {
//Global Variables
int index = 1; //for iterating through contacts
int index2 = 1; //for iterationg through notes
int index3 = 1; //for adding new notes
int index4 = 1; //for calculator
/**Constructor*/
public Mobile() {
initcomponents();
MainPanel.setVisible(true);
DailPanel.setVisible(false);
DailPanel.setVisible(false);
SavePanel.setVisible(false);
ContactPanel.setVisible(false);
LogPanel.setVisible(false);
NotesPanel.setVisible(false);
EditNotesPanel.setVisible(false);
CalcPanel.setVisible(false);
43. public static void main(String args[]) {
java.awt.EventQueue.incokeLater(new Runnable()) {
public void run() {
new Mobile.setVisible(true);
}
});
}
44. Database structure
The database used in this application is Mobile
database of MySQL. It consists of following Tables;
Tables_in_mobile
callregister
contacts
notes
45. 1. Callregister Table
This table stores all the details of the calls made and
the time of call. Its structure is:
Field Type Null Key Default Extra
Name varchar
(20)
YES NULL
Number varchar
(20)
YES NULL
Time date YES NULL
2. Contacts Table
This table stores all the details of the contacts stored.
Its structure is:
Field Type Null Key Default Extra
Name varchar
(20)
YES NULL
Number bigint
(20)
NO PRI NULL
46. 3.Notes Table
This table stores all the details of the notes stored.
Its structure is:
Field Type Null Key Defaul
t
Extra
date date YES NULL
text varchar
(200)
YES NULL
47. B ibliography
T ext B ook Of I nformatics
P ractices
I nternet
o http://www.cbseipprojects.in
Desktop
S mart P hone
S oftware's
Mysql
NetBeans IDE 6.0
M y I .P T eacher
Miss Gauri Mam