SlideShare a Scribd company logo
1 of 10
Download to read offline
Submitted By
Heena Tejwani
BCA 3rd Year
Dezyne Eā€™cole College
1
Application on Java Language
Submitted By
Heena Tejwani
BCA ā€“ 3rd Year
Dezyne Eā€™ cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
2
Acknowledgement
With due Regards,
Heena Tejwani
BCA 3rd Year
3
This application on ā€œJava Languageā€ was developed at Dezyne Eā€™cole
College.
During the making of this project I have learnt a lot and I thank my mentor
Mr. Tarun Sharma for helping us during the making of project.
I thank my college ā€œDezyne Eā€™cole Collegeā€ for having conducted this
ā€œIdentityā€ exhibition for helping us to bring out our skill.
Standard Calculator
Layout of Calculator
HEENA TEJWANI
Bachelor Of Computer
Application 3rd year
Dezyne Eā€™cole College
www.dezyneecole.com
4
Insert 1st no. eg. 23
Standard Calculator
Select Operator eg. ā€œ+ā€
HEENA TEJWANI
Bachelor Of Computer
Application 3rd year
Dezyne Eā€™cole College
www.dezyneecole.com
5
Insert 2nd no. eg. 10
Standard Calculator
Select ā€œ=ā€ for display the output
HEENA TEJWANI
Bachelor Of Computer
Application 3rd year
Dezyne Eā€™cole College
www.dezyneecole.com
6
public class CALCULATOR extends Applet implements ActionListener
{
TextField t1;
Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b0;
Button add,sub,mul,div,eql,dot;
String msg="";
String tmp;
int a,b;
public void init()
{
setLayout(null);
t1=new TextField(20);
b1=new Button("1");
b2=new Button("2");
b3=new Button("3");
b4=new Button("4");
b5=new Button("5");
b6=new Button("6");
b7=new Button("7");
b8=new Button("8");
b9=new Button("9");
b0=new Button("0");
add=new Button("+");
sub=new Button("-");
div=new Button("/");
mul=new Button("*");
7
Source Code
dot=new Button(".");
eql=new Button("=");
add(t1);
add(b7);
add(b8);
add(b9);
add(div);
add(b4);
add(b5);
add(b6);
add(mul);
add(b1);
add(b2);
add(b3);
add(sub);
add(dot);
add(b0);
add(eql);
add(add);
t1.setBounds(30,30,200,40);
b7.setBounds(30,80,44,44);
b8.setBounds(82,80,44,44);
b9.setBounds(134,80,44,44);
b4.setBounds(30,132,44,44);
b5.setBounds(82,132,44,44);
b6.setBounds(134,132,44,44);
b1.setBounds(30,184,44,44);
b2.setBounds(82,184,44,44);
b3.setBounds(134,184,44,44);
dot.setBounds(30,236,44,44);
b0.setBounds(82,236,44,44);
eql.setBounds(134,236,44,44);
add.setBounds(186,236,44,44);
sub.setBounds(186,184,44,44);
mul.setBounds(186,132,44,44);
div.setBounds(186,80,44,44);
b0.addActionListener(this);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);
8
b7.addActionListener(this);
b8.addActionListener(this);
b9.addActionListener(this);
add.addActionListener(this);
div.addActionListener(this);
mul.addActionListener(this);
sub.addActionListener(this);
eql.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
String str=ae.getActionCommand();
if(str.equals("+")||str.equals("-")||str.equals("*")||str.equals("/"))
{
String str1=t1.getText();
tmp=str;
a=Integer.parseInt(str1);
msg="";
}
else if(str.equals("="))
{
String str2=t1.getText();
b=Integer.parseInt(str2);
int sum=0;
if(tmp=="+")
sum=a+b;
else if(tmp=="-")
sum=a-b;
else if(tmp=="*")
sum=a*b;
else if(tmp=="/")
sum=a/b;
String str1=String.valueOf(sum);
t1.setText(""+str1);
msg="";
}
else
{
//String ae.getActionCommand();
//str +=ae.getActionCommand();
msg+=str;
t1.setText(""+msg);
}
}
public void paint(Graphics g)
{
g.setColor(Color.cyan);
g.fillRect(20,20,220,270);
}
}
9
Submitted By
Heena Tejwani
BCA ā€“ 3rd Year
Dezyne Eā€™ cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
10
Thank You

More Related Content

Similar to Heena Tejwani Project on Java ,Final Year BCA ,Dezyne E'cole College

Similar to Heena Tejwani Project on Java ,Final Year BCA ,Dezyne E'cole College (20)

Heena Tejwani Project on java ,Final Year BCA ,Dezyne E'cole College
Heena Tejwani Project on java ,Final Year BCA ,Dezyne E'cole CollegeHeena Tejwani Project on java ,Final Year BCA ,Dezyne E'cole College
Heena Tejwani Project on java ,Final Year BCA ,Dezyne E'cole College
Ā 
Heena Tejwani Project On HTML and CSS ,Final Year BCA ,Dezyne E'cole College
Heena Tejwani Project On HTML and CSS ,Final Year BCA ,Dezyne E'cole CollegeHeena Tejwani Project On HTML and CSS ,Final Year BCA ,Dezyne E'cole College
Heena Tejwani Project On HTML and CSS ,Final Year BCA ,Dezyne E'cole College
Ā 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
Ā 
Nikunj Tak ,3rd Year BCA,Project on Java Programming
Nikunj Tak ,3rd Year BCA,Project on Java ProgrammingNikunj Tak ,3rd Year BCA,Project on Java Programming
Nikunj Tak ,3rd Year BCA,Project on Java Programming
Ā 
Iram naaz khan_studentmanagementpdf
Iram naaz khan_studentmanagementpdfIram naaz khan_studentmanagementpdf
Iram naaz khan_studentmanagementpdf
Ā 
Nikunj Tak ,Project on C++ Language ,Final Year BCA ,Dezyne E'cole College
Nikunj Tak ,Project on C++ Language ,Final Year BCA ,Dezyne E'cole CollegeNikunj Tak ,Project on C++ Language ,Final Year BCA ,Dezyne E'cole College
Nikunj Tak ,Project on C++ Language ,Final Year BCA ,Dezyne E'cole College
Ā 
Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++
Ā 
Vb paint chandni
Vb paint chandniVb paint chandni
Vb paint chandni
Ā 
Mohnish vb stock_maintanence
Mohnish vb stock_maintanenceMohnish vb stock_maintanence
Mohnish vb stock_maintanence
Ā 
Mohnish Tak ,3rd year ,Project on Java Applet
Mohnish Tak ,3rd year ,Project on Java Applet Mohnish Tak ,3rd year ,Project on Java Applet
Mohnish Tak ,3rd year ,Project on Java Applet
Ā 
Heena Tejwani ,3rd Year BCA ,Project on Visual Basic (V.B Paint)
Heena  Tejwani ,3rd Year BCA ,Project on Visual Basic (V.B Paint)Heena  Tejwani ,3rd Year BCA ,Project on Visual Basic (V.B Paint)
Heena Tejwani ,3rd Year BCA ,Project on Visual Basic (V.B Paint)
Ā 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
Ā 
Ravi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third YearRavi Prakash Yadav , BCA Third Year
Ravi Prakash Yadav , BCA Third Year
Ā 
Microsoft power point html-danna-meetali-daamani
Microsoft power point   html-danna-meetali-daamaniMicrosoft power point   html-danna-meetali-daamani
Microsoft power point html-danna-meetali-daamani
Ā 
Deepak Soni ,BCA Third Year
Deepak Soni ,BCA Third YearDeepak Soni ,BCA Third Year
Deepak Soni ,BCA Third Year
Ā 
Iram naaz khan_numbersystem_pdf
Iram naaz khan_numbersystem_pdfIram naaz khan_numbersystem_pdf
Iram naaz khan_numbersystem_pdf
Ā 
Iram Naaz,3rd Year BCA,Project on number system calculator using C Language
Iram Naaz,3rd Year BCA,Project on number system calculator using C LanguageIram Naaz,3rd Year BCA,Project on number system calculator using C Language
Iram Naaz,3rd Year BCA,Project on number system calculator using C Language
Ā 
Nilesh Bhagchandani ,Project on C++ ,Final Year BCA ,Dezyne E'cole College
Nilesh Bhagchandani ,Project on C++ ,Final Year BCA ,Dezyne E'cole CollegeNilesh Bhagchandani ,Project on C++ ,Final Year BCA ,Dezyne E'cole College
Nilesh Bhagchandani ,Project on C++ ,Final Year BCA ,Dezyne E'cole College
Ā 
Sunil Balotiya ,BCA 3rd year
Sunil Balotiya ,BCA 3rd year Sunil Balotiya ,BCA 3rd year
Sunil Balotiya ,BCA 3rd year
Ā 
Mohnish Tak ,BCA-3 YEAR,Project on Java
Mohnish Tak ,BCA-3 YEAR,Project on JavaMohnish Tak ,BCA-3 YEAR,Project on Java
Mohnish Tak ,BCA-3 YEAR,Project on Java
Ā 

More from dezyneecole

More from dezyneecole (20)

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Year
Ā 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Ā 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
Ā 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
Ā 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
Ā 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Ā 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
Ā 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
Ā 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Ā 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Ā 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Year
Ā 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Ā 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Ā 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Ā 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Ā 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Ā 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Ā 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Ā 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Ā 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Ā 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Ā 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
Ā 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Ā 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Ā 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜
Ā 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Ā 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Ā 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
Ā 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
Ā 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Ā 
Finology Group ā€“ Insurtech Innovation Award 2024
Finology Group ā€“ Insurtech Innovation Award 2024Finology Group ā€“ Insurtech Innovation Award 2024
Finology Group ā€“ Insurtech Innovation Award 2024
Ā 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Ā 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Ā 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Ā 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Ā 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Ā 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Ā 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Ā 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Ā 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Ā 

Heena Tejwani Project on Java ,Final Year BCA ,Dezyne E'cole College