Great tutorial, only thing which bothered me was the fact that you enforced your idea of another texfield above the main textfield. I just wanted to use the main one and now I can't figure out how to fix it since the "=" doesn't do anything
Thank u very much create this video , i'm a self learner bought java , I could learn lot of codes in this video and i think others same. Good job!!!!!!
very useful video sir, it"s so useful and understanding easily because you explained everything by writing (and not uttering by mouth, so it becomes very much clear and no confusion), thanks sir. Please make more Videos on java
Thank You Very Much Sir Currently In Class 12th Right Now.. This video helped me a lot to create a normal calculator... although your video was 19 mins long it took me 100mins😂😂 ..thank you sir for explaining it with the utmost brilliance 😚
i did this to train my self and get better now my friend told me that am gonna have to send this as a project in college lol thanks man(btw i can't open the app in my pc idk why imma try to fix that but if u know how id appriciate if u tell me XD)
Thank you greatly for the tutorial! How would we go about making a check so they can't use more than one decimal before an operator button is pressed. right now you could have 345.433.4554?
For the "back" button there is no need for a StringBuilder, that is overkill...!. you can make is way simpler this way if(!txtScreen.getText().isBlank()) { txtScreen.setText(txtScreen.getText().substring(0, txtScreen.getText().length()-1)); }
i have done making of this project by following your steps but when I gone into the dist folder and tried to open the jar file of that calculater app that I have made it doesn't intead a pop up came in which it said : a java exception has occurred, help me to resolve this please
That is a great video and lecture I try and build it, But there is one problem that it can not show the result as float example we give (2*2.4) it show the result as 4 not the decimal part I hope you gave as the right instruction to solve it.
Hola amigo, mil gracias por el tutorial, me ha ayudado mucho Ahora tengo un favor para pedirte: PODRIAS HACER UN TUTORIAL O EXPLICARME como puedo hacer una calculadora especifica ?? Me explico: Soy Tecnico de Sonido y necesito hacer Calcular Longitud de onda, Periodo, Frecuencia, retrasos ( Delay ) , etc... Tengo los calculadores con formulas en exel pero Me ENCANTARIA poder tener una aplicación en lugar de ir con muchos exels. Es posible ?? Mil gracias de antemano Compañero ... Espero tu respuesta, si necesitas las hojas de calculo solo tienes que decírmelo...
I like it your tutorial, but it is some bug : example : 3+5 = 8.00 , if press now any ( for example 7) number it display : 8.007 its NOT ok, solve : in every case:1..2..3 ..4... set global boolean flag = true, ; example private boolean flag; case 1: flag = true; ans = num - Double.parseDouble(textField.getText()); textField.setText(Double.toString(ans)); break; and : in every (btn1.. btn2..) number button : example : btn7.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if(flag) { textField.setText("");flag = false; } its remove text and after dot don't add any number like in real calculator, its work perfect for me
What was the code for "." (Dot) button. Unlike other buttons other than operators It should show up only once at a time. For example. If we press the button 1 1 will show up in text field as 1 and if I press 1 again it will show 111111 But a dot should appear only once . If we press dot button again and again it should work for once (for first number) at a time and it should activate, only if we use any operator. (For second number)
You just need to create one method/event to handle all buttons.... Like this: private void btnClick(java.awt.event.ActionEvent evt) { JButton btn = (JButton)evt.getSource(); txtCalc.setText(txtCalc.getText() + btn.getText()); } Now for each Button that you want displayed in the textfield, add the "btnClick" event as a "ActionPerformed" event.
Also, you could simply make a method to toggle the buttons enabled or disabled, like this: private void toggleEnabled(boolean shouldToggleOn) { Component[] components = this.getContentPane().getComponents(); for (Component component : components) { if (component instanceof JButton) { if (shouldToggleOn == true) { component.setEnabled(true); } else { component.setEnabled(false); } } } } Now inside add this to the "ActionPerformed" of "On" and "Off" Radio Buttons: for the "Off": toggleEnabled(false); for the "On": toggleEnabled(true);
iWhen i press the equals button, nothing happens. I've done the exact steps as in the video! Any ideas? I have the newest version of netbeans but that shouldn't be an issue right?
For a tutorial with no voice over, you really delivered with this. Thank you so much. Very simple and clear tutorial.
This has to be one of the best programming tutorial I watched on TH-cam, everything is clearly explained.
One of the greatest tutorial i have seen, i appreciate your hardwork
Thank you so much amazing tutorial, watching it 7 years later!
I feel like a programmer 🤭thanks
Background music amazing 🎵
Such a wonderful vedios 👏👏
these are some of the best java tutorial/ programming tutorial ever and i usualy click of tutorials that dont have audio
next step would be to install buffer, to respect operation predescence order. 3+8/2=7.
* / + -.
Sir,I'm very grateful to you.I'm Only 14 years old but I did it completely.thank you.You deserve a ph.d.
This is the best tutorial 🥰🥰🥰 it's just working well🥰🥰🥰
it's a damn fine job youve gone and done with this one brother. the boys are proud of you.
That was really impressive and fast. Thanks for sharing, really appreciate the hardwork. 🖒
OMG that was awesome. I understand what is going on!! Thank you so much
How to write code for = button
@@educationforall4950 JButton is the component. Google it.
I liked the background music that's so pleasant and also the content undoubtedly ......
I am from Bangladesh........You Are the Awesome.....Very very thanks UMK Games
I am so grateful for your content man! It was super helpful... Thanks a mill ❤❤❤
Great tutorial, only thing which bothered me was the fact that you enforced your idea of another texfield above the main textfield. I just wanted to use the main one and now I can't figure out how to fix it since the "=" doesn't do anything
I tried and tested and proven it works
Thank u very much create this video , i'm a self learner bought java , I could learn lot of codes in this video and i think others same. Good job!!!!!!
Thank you so much sir. I love this video.
ThankYou Mr. Very good 👏👏
This video helped me a LOT... You earned a sub
thank very much you are great man
10.Q.U !!!!!!
very useful video sir, it"s so useful and understanding easily because you explained everything by writing (and not uttering by mouth, so it becomes very much clear and no confusion), thanks sir. Please make more Videos on java
Excellent explanation well done keep it up🙏🙏🙏👍👍👍👍👍
Thank you so much for these tutorials. It was easy and really helpful 👍
Thanks bro, you really help me with mi homework :DDD
Thanks you so much & Love you brother
thanks a lot
i create my first software with you
Awesome ...
Thank You Very Much Sir
Currently In Class 12th Right Now..
This video helped me a lot to create a normal calculator...
although your video was 19 mins long it took me 100mins😂😂
..thank you sir for explaining it with the utmost brilliance 😚
1:46
int number;
number is basically delete position
Love this tutorial
You were a great help. Thank you so much.
Its great explanation without u actually speaking. Thanks buddy.
You were a big help, thank you.
you are the best
Very good tutorial...keep up the good work!!
Good work! I am in doubt of what to learn, Java for WEB or Desktop, at the moment I am practicing OOP only. Thanks for the video
Thanks man. You have done great job.
thank you i got exactly what i needed 🙏
4:45 - To remember :D
man thanks a lot now I just like your video and subscribed to your channel, nah I hope you can put square root on it next time
i did this to train my self and get better now my friend told me that am gonna have to send this as a project in college lol thanks man(btw i can't open the app in my pc idk why imma try to fix that but if u know how id appriciate if u tell me XD)
Thank you greatly for the tutorial! How would we go about making a check so they can't use more than one decimal before an operator button is pressed. right now you could have 345.433.4554?
This was amazing man!
Keep going!
This helped me a lot, thanks. :)
Thank you, this helped a lot.
Very good video. Thank you very much !
Thanks bro very very thanjs
Excellent, beautiful, thank you very much.
For the "back" button there is no need for a StringBuilder, that is overkill...!. you can make is way simpler this way if(!txtScreen.getText().isBlank()) {
txtScreen.setText(txtScreen.getText().substring(0, txtScreen.getText().length()-1));
}
good video man
Thanks for uploading this usefull video buddy. I rally appreciat you.
Perfect! Thanks!
Thank you so much
great video with great explanation... thumbs up
Wow bro its cool. Tanks a lot
Best
I don´t have the Packaging menu under Build, someone knows how to fix?. Thank you
Amazing Tutorial!
i have done making of this project by following your steps but when I gone into the dist folder and tried to open the jar file of that calculater app that I have made it doesn't intead a pop up came in which it said : a java exception has occurred, help me to resolve this please
Nice background music 💙💙
Amazing Tutorial! thank you
Thank you so much, that was great help me
Thank you
Java is exciting
That is a great video and lecture I try and build it, But there is one problem that it can not show the result as float example we give (2*2.4) it show the result as 4 not the decimal part I hope you gave as the right instruction to solve it.
Wonderful
but it take only 2 numbers at a time to do airthmetic operation, what if we want multiople numbers airthmetic operations at a time?
Great vidéo !
The BEST!!!!!!!!!! thanks
Hola amigo, mil gracias por el tutorial, me ha ayudado mucho
Ahora tengo un favor para pedirte:
PODRIAS HACER UN TUTORIAL O EXPLICARME como puedo hacer una calculadora especifica ??
Me explico:
Soy Tecnico de Sonido y necesito hacer Calcular Longitud de onda, Periodo, Frecuencia, retrasos ( Delay ) , etc...
Tengo los calculadores con formulas en exel pero Me ENCANTARIA poder tener una aplicación en lugar de ir con muchos exels.
Es posible ??
Mil gracias de antemano Compañero ... Espero tu respuesta, si necesitas las hojas de calculo solo tienes que decírmelo...
dobar tutorial bravo.
You are good lecturel
thank u
thanks
How your method to learn java expert like this?? ,good job man
Great
Thank you 🌷⚘
thank u very much..........................
And if I type 1 + 1 + 1 + 1 and so on, will the display continue to update the result without pressing the "=" button?
The song overlayed on this is so similar to Boogie wit a hoodie's Drowning
❤️❤️❤️❤️
Can I use int (Integer)instead of Double?
(No decimal)
I like it your tutorial, but it is some bug : example : 3+5 = 8.00 , if press now any ( for example 7) number it display : 8.007 its NOT ok, solve :
in every case:1..2..3 ..4... set global boolean flag = true, ; example
private boolean flag;
case 1:
flag = true;
ans = num - Double.parseDouble(textField.getText());
textField.setText(Double.toString(ans));
break;
and :
in every (btn1.. btn2..) number button : example :
btn7.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(flag) { textField.setText("");flag = false; }
its remove text and after dot don't add any number like in real calculator, its work perfect for me
What was the code for "." (Dot) button.
Unlike other buttons other than operators
It should show up only once at a time.
For example. If we press the button 1
1 will show up in text field as 1 and if I press 1 again it will show 111111
But a dot should appear only once . If we press dot button again and again it should work for once (for first number) at a time and it should activate, only if we use any operator. (For second number)
How to write code for = button
pal gume
Can i see the whole code? It errors for me i dnt know where to properly put your codes
Idk but mine won't run
How to use the int i dont want answer in double
what to do when we want to get one number from a text field and second from another and display in a 3rd textfield
You just need to create one method/event to handle all buttons.... Like this:
private void btnClick(java.awt.event.ActionEvent evt) {
JButton btn = (JButton)evt.getSource();
txtCalc.setText(txtCalc.getText() + btn.getText());
}
Now for each Button that you want displayed in the textfield, add the "btnClick" event as a "ActionPerformed" event.
Also, you could simply make a method to toggle the buttons enabled or disabled, like this:
private void toggleEnabled(boolean shouldToggleOn) {
Component[] components = this.getContentPane().getComponents();
for (Component component : components) {
if (component instanceof JButton) {
if (shouldToggleOn == true) {
component.setEnabled(true);
} else {
component.setEnabled(false);
}
}
}
}
Now inside add this to the "ActionPerformed" of "On" and "Off" Radio Buttons:
for the "Off":
toggleEnabled(false);
for the "On":
toggleEnabled(true);
iWhen i press the equals button, nothing happens. I've done the exact steps as in the video! Any ideas? I have the newest version of netbeans but that shouldn't be an issue right?
I like the jar file tutorial.
Nice video! Please tell me the name of the song played during starting of the video
where have you done the arithmetic operations coding??? in text field aur in which button.??
suprbbbbbb work
dude 4:30 What music is that? Soo nice 👌👍
man appreciate u thanks...how did u do for pont(.)
hi hello there, thanks for the video its very clean and i like your backing track can i have it ?
I set a null layout during making my calculator like this and I want set a new label on it but I cannot see this any solution for this Tell me!
good vidio
Thank you sir :D
Thanks mattteeeee
Thanks bro
make a video on how to make GUI for sudoku .