To anyone wondering what the background music is: 0:00 - 2:24: Third Time - Jingle Punks ruclips.net/video/tJzg8pzALiw/видео.html 2:24 - 13:53 Jincheng Zhang - Culture I L ruclips.net/video/Mlfzmk5sgik/видео.html
Thanks for this tutorial. I am following along using Eclipse IDE to formulate my own version of this calculator. There are a few differences, but over all this is great. Thanks!
It's quite easy to code for a calculator if program it in java, not only I developed many apps like calculator but others like railway ticket generator, library manager using arrays : and many other programs like hotel book like Trivago but Trivago is a complex app we have to use java script btw I read in 10 class in ICSE so am lil profound in programming
you can use substring method for backspace button ) //backspace button code String s=txtField.getText(); textField.setText(s.substring(0, s.length()-1));
You will create a program that can perform multi task witch can Create, Read, Update and Delete. The very basic example is a calculator.. In other words your about to create a calculator using java.
ok so this probably isnt the best way of making a ui calc in java. You could use an array of buttons (numbers, operations, ect) and use a for loop to access them. ex: private JButton[] numbers; numbers = new JButton[10]; for (int i = 0; i < 10; i++) { numbers[i].setText(i); }
I am currently working on developing the logic so that it actually works as a calculator. I will update you when its done and upload my project on github. I am almost done with it and it will atmost take me 3 days to complete the project.
I made a program (not an app) ( i'm a noob) it's subtracts, adds, multiplies, divides, finds square root and calculates percentage. But there's a downside if you want to add/subtract/divide/multiply less than 10 numbers, you'd have to input others as 0. I can copy paste the program if you want me to
Just save a temporary number and operator, when the second number is pressed and then the operator you have to operate what is on temporary plus de second number
jTextField1.setText(""); this command must have to be written before disable() in OFF button command. otherwise un deleted numbers appears on the screen after off
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 Cance
Depends. If you want to become a programmer, the you should learn all the swing stuff. If you want to quickly build and rung a small project of yours -you canse the design tools. If you want to become a programmer, you need to learn these disign tools and a hole bunch of other tools as well.
Watching this video and being new to java I decided to make a calculator like windows, where you can use decimal numbers. +, -, * , / all in once (for exampe 2+2*4) It all works fine but I got very frustrated, for half an hour i was redoing the part on how to solve * and / with + - (you can't just work from left to right) and i was comparing my result to that of the windows calculater, and it was never the same, so without looking i assumed mine was wrong until after about half an hour i noticed mine was correct and the windows one was wrong i even checked with my phone and I was right. i just submitted the problem to the windows feedback, but for example 2+2*4 correct: 2*4 = 8 => 2+8 = 10 Windows 2+2 = 4 => 4*4 = 16
I'm thinking one solution right now, It'd be to create on function that analyze the equation introduced and separate it into simple sentences according to the operational hierarchy
@@alexcordovac Yeas this is the solution i came up with. i first check if the equation has brackets. if so i will solve everything between the brackets. then i check if the equation has multiplication or division and again if it does it solves those. then you only have an equation with addition or subtraction
Everything is fine and good! But, you mentioned that any IDE if fine but the logic would be the same. What if I use Notepad or Geany, and compile my code manually using CMD or terminal(in Linux-based Operating Systems)? You used Designer mode in Netbeans IDE and clearly you are telling that it is a Swing-based application. Don't you think anything designed using designer mode is taken as JavaFX functions? Please note that JavaFX is "completely" different from Swing-based applications.
It is good that this tutorial accomplishes its objective; however, it is not as portable as it could be. It relies on the netbeans interface. Those like myself who use eclipse are SOL.
I was going to say exactly the same thing. But idk it it's possible in this platform, except if he decides to put all the buttons into an array. Anyway I'm a Qt user, where this kind of things aren't a problem.
To anyone wondering what the background music is:
0:00 - 2:24: Third Time - Jingle Punks
ruclips.net/video/tJzg8pzALiw/видео.html
2:24 - 13:53 Jincheng Zhang - Culture I L
ruclips.net/video/Mlfzmk5sgik/видео.html
just a single comments, always use first letter UPPERCASE in java classes.
Good job for ur video !!!
awesome easiest and understandable methods used best way to go for beginners no complicated stuff
Your tutorial makes it easier to understand everything. THANK YOU SO MUCH!
I must say... i'm impressed by your teaching its nice
great job
I am beginner and I am from Uzbekistan I undustand english language but not wery well . thanks for video I liked it
I never can understand why people make good videos without verbal instructions
Don't want to get bullied for their voice and accent
this man has about 5k video in his channel why he will accent you@@Emoechaiti
Because The Genius persons are always Calm and Patient. They always focus on work.
Ig it's more about not having the enough resources for buying equipment to do that
Great sir i am also a beginner studnet of OOP Java 🤗
It's a very task for java developers.
Thanks for this tutorial. I am following along using Eclipse IDE to formulate my own version of this calculator. There are a few differences, but over all this is great. Thanks!
your video is the best video.please continuously make videos like this. you have the great knowledge of java ide.
i can't define my hapiness
Awesome video man........ I learn lot of things in this video....... Thank you very much
Thank you very much.
You helped a lot.
I've written a thousand java programs but not yet.
makasi bang sangat bermanfaat bagi coding pemula🎉
Thank you very much sir. GOD bless you.
It's quite easy to code for a calculator if program it in java, not only I developed many apps like calculator but others like railway ticket generator, library manager using arrays : and many other programs like hotel book like Trivago but Trivago is a complex app we have to use java script btw I read in 10 class in ICSE so am lil profound in programming
simple programming but very effective sir. thanx thanx
Very Thanks to you for making such projects ..Its very helpful for beginners, kIndly make more projects on java.
very instereting. thank you Ras Tech
you can use substring method for backspace button )
//backspace button code
String s=txtField.getText();
textField.setText(s.substring(0, s.length()-1));
10:40 and your explaining really continue like this +one sub!
I don't know who is this guy but I love this content 😁
Ultimate bro
I liked your number concatenation technique
I think to this is a very important video
You will create a program that can perform multi task witch can Create, Read, Update and Delete. The very basic example is a calculator.. In other words your about to create a calculator using java.
I can it display something like "MATHS ERROR"
Is the video using WindowBuilder plug in for eclipse?
Thank you very much.
Great tutorial man !
ok so this probably isnt the best way of making a ui calc in java. You could use an array of buttons (numbers, operations, ect) and use a for loop to access them. ex:
private JButton[] numbers;
numbers = new JButton[10];
for (int i = 0; i < 10; i++) {
numbers[i].setText(i);
}
Yo that’s crazy but who tf asked
@@permanentfacelessness i did.
@@skyler948 when
@@permanentfacelessness now
@@skyler948 ?
Your videos are the best!
Watch my videos too....
ruclips.net/video/7PS1sll-FFI/видео.html
Thank u very much, I have learned a lot
I was useful this . Thank you so much..😍
Sir which ide, you are using in this video
Great background music here, please could you share the artist, title and link. Thank you
thank you, i understand all . Good teacher .but you forgot equal (=)
What r use code of = ??...in this calculator
@@chandnik7647 nice english m8
@@zsnails5892 lolol
zSnails mfw i find out that not everybody has English as a first language
No bro he have decided about = you don't have watch the next video
Thanks for this. I spaced put for a bit and thought from the music that I was watching a porno from the 70s.
I learned from him a lot
Very nice to watch, the background music is very relaxing while learning.
Thank you for this tutorial its very helpfull
how to apply logic like, adding multiples numbers , for ex: 1+2+4+4+3
I am currently working on developing the logic so that it actually works as a calculator. I will update you when its done and upload my project on github.
I am almost done with it and it will atmost take me 3 days to complete the project.
1+2+4+4+3 = 14
I made a program (not an app) ( i'm a noob) it's subtracts, adds, multiplies, divides, finds square root and calculates percentage.
But there's a downside if you want to add/subtract/divide/multiply less than 10 numbers, you'd have to input others as 0.
I can copy paste the program if you want me to
You’ll have to use a postfix algorithm to be able to do that.
Just save a temporary number and operator, when the second number is pressed and then the operator you have to operate what is on temporary plus de second number
How do you highlight your cursor with that yellow cirlce?
Nostalgic. Last year when I cant write single line of code I watched this about 5 times😅
how good are you at it now?
Nice , idea.
If you will add your voice for explanation we will understand nicely.
Thanks a lot and keep it up
That's good but does this software is net bean...????
best video for trainee.
jTextField1.setText("");
this command must have to be written before disable() in OFF button command.
otherwise un deleted numbers appears on the screen after off
Thanks mate
Thank you so much!!!
Can i make this on blue j?
This video was really useful :)
GOOD JOB
When i'm running project I'm getting no main classes found. What can I do??
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
Cance
very good
Now, in eclipse 🤗
should i learn how to actual write the jframe code?
or just use the design tools provided by netbean in the video?
Depends. If you want to become a programmer, the you should learn all the swing stuff.
If you want to quickly build and rung a small project of yours -you canse the design tools.
If you want to become a programmer, you need to learn these disign tools and a hole bunch of other tools as well.
U r superb u can make a full course on gui in netbeans using Java
Thank you very mụch
is it possible to create GUI without using pallete and automatic template like that? (I don't really know what's that called)
Dude, I liked one of your background music that I had to bring my $500.00 headphone.
I only use this headphone for special apps with good music.
Mast
Watching this video and being new to java I decided to make a calculator like windows, where you can use decimal numbers. +, -, * , / all in once (for exampe 2+2*4)
It all works fine but I got very frustrated, for half an hour i was redoing the part on how to solve * and / with + - (you can't just work from left to right)
and i was comparing my result to that of the windows calculater, and it was never the same, so without looking i assumed mine was wrong until after about half an hour i noticed mine was correct and the windows one was wrong i even checked with my phone and I was right.
i just submitted the problem to the windows feedback, but for example
2+2*4
correct: 2*4 = 8 => 2+8 = 10
Windows 2+2 = 4 => 4*4 = 16
I'm thinking one solution right now, It'd be to create on function that analyze the equation introduced and separate it into simple sentences according to the operational hierarchy
@@alexcordovac Yeas this is the solution i came up with. i first check if the equation has brackets. if so i will solve everything between the brackets. then i check if the equation has multiplication or division and again if it does it solves those. then you only have an equation with addition or subtraction
You can just make a 2D array of JButtons and iterate over it using a for loop to set it to false
In which application are you running the program?
Please let me know as I am finding the application from a week!
Is this possible in eclipse?
Funny how this was in my recommended after I decided to try and build a calculator myself without watching a tutorial
it's not funny bro!! You're being spied 🙂🙂
JK
When I try to add a new ”JFrame” at 0:47 it doesnt appear.. I’ve looked in ”other” and cant find it there either
I think you need the JFormDesigner eclipse plug-in
dude what is this jtextfield how did u get that ? thx
there was no need of adding on/off button it is not running on battrey
i think its just aesthetic...
@@xinflict3078 yup it is
It is if you run it on a laptop
@@ndrew_B ha ha XD
Same
Amazing video. Thanks!!
I am asking that There is no need to write a code just edit will be required for making calculator???
this is so helpful! I really hate the new Windows 10 calculator.
what is the title of music.. btw?
If it's a virtual calculator why would you need to turn it off?
hahahaha
Interesting. Thanks.
why you dont use loops for setEnabled()?
so cool! thank you very much!!!
Tip of the Fedora to you good sir!
waths the name from the music? 2:35
CHEEKI BREEKI isthe song
Hi. Is Java still worth it to learn in 2021 (instead of languages like golang etc.)? Thanks
Yes
Yes, example: minecraft
Lol
Java is worth and good to learn.. Java will not be obsolete. Java is magic...
Everything is fine and good!
But, you mentioned that any IDE if fine but the logic would be the same. What if I use Notepad or Geany, and compile my code manually using CMD or terminal(in Linux-based Operating Systems)? You used Designer mode in Netbeans IDE and clearly you are telling that it is a Swing-based application. Don't you think anything designed using designer mode is taken as JavaFX functions? Please note that JavaFX is "completely" different from Swing-based applications.
Abhiram Shivaprasad u know how to do it in notepad
notepad isnt an IDE. its just a text editor
@@hayden0211 that doesn't mean you can't use it for programming. In the end, all source code is just plain text.
Cannot make a static reference to the non-static method setText(String) from the type JTextComponent while setting up the SetText
in android 🤔
Great channel, wish you had more examples of projects in Java :D
Can you give a video about Joomla Web design
Why I have eroor in jButton..... I cannot find the solution.
Can you change the autocomplete keybind in the settings? Its really annoying being ctrl+space...
can you maybe change it to tab?
12:05 this makes me cry
thanks
good
are you using eclips or ntbns?
Can u teach us how to code this using notepad++
great.
Hello
My question is how to connect java frame application access database
interessant pour une programmation
It is good that this tutorial accomplishes its objective; however, it is not as portable as it could be. It relies on the netbeans interface. Those like myself who use eclipse are SOL.
But the code can be copied
I can make a tutorial if you would like
@@whitebeartigtig Please. I would be most grateful.
Bro we want explanation how to make it easy and in understandeable way
True
wouldn't it be easier if you did this?
for(int i = 1; i
Indeed it would. However netbeans doesn’t generate the buttons as an array.
I was going to say exactly the same thing. But idk it it's possible in this platform, except if he decides to put all the buttons into an array.
Anyway I'm a Qt user, where this kind of things aren't a problem.
You can change the name of the button and do that one.