How to create a calculator in netbean | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to create a calculator in netbean

1st Mar 2017, 4:39 PM
🎆Sourav Subhakant Dash🔥🔥
🎆Sourav Subhakant Dash🔥🔥 - avatar
6 Answers
+ 24
Use your java skills ;) Try to find different examples. There are plenty of them on the Internet.
1st Mar 2017, 4:46 PM
Igor Makarsky
Igor Makarsky - avatar
+ 5
no
1st Mar 2017, 5:26 PM
🎆Sourav Subhakant Dash🔥🔥
🎆Sourav Subhakant Dash🔥🔥 - avatar
+ 5
sorryyyyyy yes I am using
1st Mar 2017, 5:27 PM
🎆Sourav Subhakant Dash🔥🔥
🎆Sourav Subhakant Dash🔥🔥 - avatar
+ 4
Ok, first drag and drop all the components including 3 Text fields + All buttons for add subt etc + Labels Then code on each button by double clicking on it. example for add button write:- double a= Double.parseDouble(tf1.getText()); double b= Double.parseDouble(tf2.getText()); tf3.setText(a+b); NOTE:- tf1 is the name of The first input text field tf2 is.........second text field tf3 is......... output textfield you can change these by right clicking a button and selecting change varaible name (2nd option)
1st Mar 2017, 5:33 PM
Meharban Singh
Meharban Singh - avatar
+ 1
Using switch cases for mathematical operators
14th Jun 2017, 6:35 PM
Huzaifah Punjani
Huzaifah Punjani - avatar
0
Are you using GUI builder ?
1st Mar 2017, 5:26 PM
Meharban Singh
Meharban Singh - avatar