SlideShare une entreprise Scribd logo
1  sur  12
Coding
• Double click the exit button and type the
  following code as it is: System.exit(0);

• Then double click the clear button and type
  the following code in it:
• jTextField1.setText("");
• jTextField2.setText("");
• jTextField3.setText("");
Coding
• Double click the add button and type the
  following coding in it:
• Float num1, num2, result;
• num1= Float.parseFloat(jTextField1.getText());
• num2= Float.parseFloat(jTextField2.getText());
• result= num1 + num2;
• jTextField3.setText(String.valueOf(result));
• Double click the subtract button and type the
  following coding in it:
• Float num1, num2, result;
• num1= Float.parseFloat(jTextField1.getText());
• num2= Float.parseFloat(jTextField2.getText());
• result= num1 - num2;
• jTextField3.setText(String.valueOf(result));
• Double click the multiply button and type the
  following coding in it:
• Float num1, num2, result;
• num1= Float.parseFloat(jTextField1.getText());
• num2= Float.parseFloat(jTextField2.getText());
• result= num1 * num2;
• jTextField3.setText(String.valueOf(result));
• Double click the divide button and type the
  following coding in it:
• Float num1, num2, result;
• num1= Float.parseFloat(jTextField1.getText());
• num2= Float.parseFloat(jTextField2.getText());
• result= num1 / num2;
• jTextField3.setText(String.valueOf(result));
Net beansprojects
Net beansprojects
Net beansprojects

Contenu connexe

Similaire à Net beansprojects

java code please Add event handlers to the buttons in your TicTacToe.pdf
java code please Add event handlers to the buttons in your TicTacToe.pdfjava code please Add event handlers to the buttons in your TicTacToe.pdf
java code please Add event handlers to the buttons in your TicTacToe.pdf
ezzi97
 
Hint 1 2D array of type Button, all buttons hidden except for one.pdf
Hint 1 2D array of type Button, all buttons hidden except for one.pdfHint 1 2D array of type Button, all buttons hidden except for one.pdf
Hint 1 2D array of type Button, all buttons hidden except for one.pdf
Footageetoffe16
 
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdfCipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
ravikapoorindia
 

Similaire à Net beansprojects (7)

Lecture 2: C# Programming for VR application in Unity
Lecture 2: C# Programming for VR application in UnityLecture 2: C# Programming for VR application in Unity
Lecture 2: C# Programming for VR application in Unity
 
ch05-program-logic-indefinite-loops.ppt
ch05-program-logic-indefinite-loops.pptch05-program-logic-indefinite-loops.ppt
ch05-program-logic-indefinite-loops.ppt
 
Trace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxTrace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docx
 
java code please Add event handlers to the buttons in your TicTacToe.pdf
java code please Add event handlers to the buttons in your TicTacToe.pdfjava code please Add event handlers to the buttons in your TicTacToe.pdf
java code please Add event handlers to the buttons in your TicTacToe.pdf
 
Vs c# lecture4
Vs c# lecture4Vs c# lecture4
Vs c# lecture4
 
Hint 1 2D array of type Button, all buttons hidden except for one.pdf
Hint 1 2D array of type Button, all buttons hidden except for one.pdfHint 1 2D array of type Button, all buttons hidden except for one.pdf
Hint 1 2D array of type Button, all buttons hidden except for one.pdf
 
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdfCipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
CipherDriver.javapackage Unit_6;import java.util.;public cl.pdf
 

Dernier

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
MinawBelay
 

Dernier (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 

Net beansprojects

  • 1.
  • 2.
  • 3.
  • 4. Coding • Double click the exit button and type the following code as it is: System.exit(0); • Then double click the clear button and type the following code in it: • jTextField1.setText(""); • jTextField2.setText(""); • jTextField3.setText("");
  • 5.
  • 6. Coding • Double click the add button and type the following coding in it: • Float num1, num2, result; • num1= Float.parseFloat(jTextField1.getText()); • num2= Float.parseFloat(jTextField2.getText()); • result= num1 + num2; • jTextField3.setText(String.valueOf(result));
  • 7. • Double click the subtract button and type the following coding in it: • Float num1, num2, result; • num1= Float.parseFloat(jTextField1.getText()); • num2= Float.parseFloat(jTextField2.getText()); • result= num1 - num2; • jTextField3.setText(String.valueOf(result));
  • 8. • Double click the multiply button and type the following coding in it: • Float num1, num2, result; • num1= Float.parseFloat(jTextField1.getText()); • num2= Float.parseFloat(jTextField2.getText()); • result= num1 * num2; • jTextField3.setText(String.valueOf(result));
  • 9. • Double click the divide button and type the following coding in it: • Float num1, num2, result; • num1= Float.parseFloat(jTextField1.getText()); • num2= Float.parseFloat(jTextField2.getText()); • result= num1 / num2; • jTextField3.setText(String.valueOf(result));