Making a calculator in Java FX part 1

  Рет қаралды 56,790

Genuine Coder

Genuine Coder

Күн бұрын

Пікірлер: 36
@沼氨
@沼氨 3 жыл бұрын
Love your detailed tutorial! Thank U for making this educational video!
@tompol5433
@tompol5433 3 жыл бұрын
thank you very much ,you helped me a lot!!!! bless u!
@ferfykins
@ferfykins 4 жыл бұрын
Could you use a switch instead of if/else with event? if so, how? ty for video!!
@reshadhajiyev2841
@reshadhajiyev2841 4 жыл бұрын
yoooo u d=saved my life on exam thx man u best
@kunalverma268
@kunalverma268 4 жыл бұрын
Dude its beautiful😍💓
@asmavillan4622
@asmavillan4622 8 жыл бұрын
Useful.... Very helpful
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
yeah so much
@dell4559
@dell4559 3 жыл бұрын
anyone, please help me at 13:00 Exception in Application start method java.lang.reflect.InvocationTargetException and Error in setting onAction as #handleButtonAction
@ferfykins
@ferfykins 4 жыл бұрын
Does this calculator work with multiple operations in one operation?
@Mercio2
@Mercio2 5 жыл бұрын
Great tutorial!
@ikramalouane4647
@ikramalouane4647 6 жыл бұрын
it's the same thing with intilij ?? because the metode handTheButton doesn't been creating in my intilij i need your help please
@xx-qd5ol
@xx-qd5ol 5 жыл бұрын
I tried declarin "operation" and "data" inside the method, but it doesn´t work. It only works if you declare them as attributes, but why is that so?
@aparnagodekar8727
@aparnagodekar8727 7 жыл бұрын
Sir, I want to know if you maximize the screen by dragging at that time how to set positions of all the elements .That is how to make it Responsive
@GenuineCoder
@GenuineCoder 7 жыл бұрын
Hi, In order to make your layout responsive, you will have to design it in that way. I hope this video kzbin.info?o=U&video_id=fl6Wp1I9wHQ helps
@famzi733
@famzi733 3 жыл бұрын
Thank you.
@mohammidsaeedi6023
@mohammidsaeedi6023 7 жыл бұрын
Please can you make it as speach calculator
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
so i have little question i wish u help me little : why we have write : display.setText(display.getText() + "3"); and for this display.setText(String.valueOf(ans)); ----> u did it to make it String again i m right coz ans is float !!?
@GenuineCoder
@GenuineCoder 7 жыл бұрын
Hi, I already explained display.setText(display.getText() + "3") in your previous comment. Now let us consider display.setText(String.valueOf(ans)) -> You can call setText() only with string. ans is a float type and you have to convert float to string for displaying it. -> During calculation, you cant add/subtract/divide/multiple strings. Only numbers can be processed. So, you have to convert string to float. For converting String to float, you can use Float.parseFloat(); Eg :- You cant add "10" and "12". What you can do is int a = Integer.parseInt("10"); int b = Integer.parseInt("10"); int ans = a+b; String result = String.valueOf(ans). Hope you understood.
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
Oooooh okey okey i got it jknow we should convert to work coz here is calculator yeah yeah u have right thanx uu soo much for reply i wish u keep doining this coz u are great programmer
@bens1752
@bens1752 7 жыл бұрын
So my code is the same and it works in all the same ways except the clear button isn't working. Is there a different way to do this in the newer versions of Java?
@bens1752
@bens1752 7 жыл бұрын
Never mind I figured it out.
@bens1752
@bens1752 7 жыл бұрын
Just finished the version, fantastic.
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
how u did that !?
@Yes-ok5me
@Yes-ok5me 6 жыл бұрын
@@abbadkamel8839 update java maybe or write like the video
@manalbenchrif2961
@manalbenchrif2961 4 жыл бұрын
when i use try catch i had an error in ans =initialize ans!! whyyy?? and THANK YOU
@henrykashyap8913
@henrykashyap8913 6 жыл бұрын
i tried display.setText but it display is coming in italic, tried importing but nothing happens?
@Yes-ok5me
@Yes-ok5me 6 жыл бұрын
in scence builder check this textfield or label in properties-font-style-change it to normal
@deepakmandal2809
@deepakmandal2809 4 жыл бұрын
try {result = (data1 / data2); if (data2 == 0) { throw (new ArithmeticException()); } display.setText(String.valueOf(result)); break; } catch(ArithmeticException e) { display.setText("Math Error"); }
@RiskyCapital
@RiskyCapital 3 жыл бұрын
Ty
@giuseppemaragno8700
@giuseppemaragno8700 7 жыл бұрын
Someone can pls explain me the "Float data = Of"? What is it referring to?
@mmusa6486
@mmusa6486 7 жыл бұрын
Float data type is used to store foating point numbers i.e numbers with decimal points whenever any number is declared using float you should endeavour to add "f" at the vback of such number. e.g.. flaot myNum = 67.56f
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
well i should comment i very like ur tuto u show every thing that soo cool , but there is just one thing bad in ur tuto that u dont explain more like why we do : display.setText(display.getText() + "3"); coz u know im beggine here i dont know many things about those thing i wish u explain more for us and thanx u thanx u soo mcuh
@GenuineCoder
@GenuineCoder 7 жыл бұрын
Hi, When you consider the audience, there are a wide variety of them. There are beginners, intermidate and experts. So, I cant go for explaining too little or too much. That's why I keep it in the middle. Coming back to the question : What display.setText(display.getText() + "3") means. It is simple. Suppose you are going to type 253 using the given buttons. Then at first you press : 2 -> Display : 2 Then you press : 5 (If I have used display.setText("5"), then I will loose 2 and only 5 will remain. So, what I have done is, I took in the already present 2 and append 5 to it). -> Display : 25 Then you press : 3 -> Taking already present 25 and adding 3. Hope you got the point.
@abbadkamel8839
@abbadkamel8839 7 жыл бұрын
Ooooh okey okey i see now that why w have write (display.getText() + "3") on display.setText(....) yeah it make sense ... thanx u to explain that thanx u so much
@BoLeee
@BoLeee 7 жыл бұрын
Thanks!
@Amangupta-cd8to
@Amangupta-cd8to 4 жыл бұрын
this function also needs to call in somewhere
JavaFX Tutorial - 17 - Basic Calculator Application [Part 1]
22:15
Kody Simpson
Рет қаралды 12 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Working with JavaFX in VSCode IDE
15:10
jackFmyers
Рет қаралды 6 М.
How to create a calculator in IntelliJ Idea | Part 1
9:06
Arnob Arpon
Рет қаралды 24 М.
How to Create a BMI Calculator in Android Studio
7:22
Codes Easy
Рет қаралды 18 М.
GUI Calculator in JAVA using eclipse ide | Tech Projects
17:59
Tech Projects
Рет қаралды 137 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 1 МЛН
Make a Calculator In JavaFX Netbeans Part 1 (Designing)
11:53
ahsanhabibarz
Рет қаралды 10 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 246 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 724 М.
Create a Calculator App in Minutes - Android Studio Tutorial
19:29
How to make a Calculator in Android Studio | 2024
21:24
Easy Tuto
Рет қаралды 280 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19