Java Calculator App Development Tutorial 2 | Swing | GUI

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • in this video, u will learn Backspace button and perform Mathematical Operation.
    Part 1 :- • Java Calculator App De...

ความคิดเห็น • 185

  • @chifine
    @chifine 2 ปีที่แล้ว +5

    For a tutorial with no voice over, you really delivered with this. Thank you so much. Very simple and clear tutorial.

  • @cheesemoon6319
    @cheesemoon6319 4 ปีที่แล้ว +23

    This has to be one of the best programming tutorial I watched on TH-cam, everything is clearly explained.

  • @boubacardoucoure6382
    @boubacardoucoure6382 4 ปีที่แล้ว +7

    One of the greatest tutorial i have seen, i appreciate your hardwork

  • @ratansharma8026
    @ratansharma8026 ปีที่แล้ว +1

    Thank you so much amazing tutorial, watching it 7 years later!

  • @iqrasheraz9513
    @iqrasheraz9513 3 ปีที่แล้ว +4

    I feel like a programmer 🤭thanks
    Background music amazing 🎵
    Such a wonderful vedios 👏👏

  • @galaxylizard8263
    @galaxylizard8263 4 ปีที่แล้ว +3

    these are some of the best java tutorial/ programming tutorial ever and i usualy click of tutorials that dont have audio

  • @fernandodominguez1
    @fernandodominguez1 5 ปีที่แล้ว +19

    next step would be to install buffer, to respect operation predescence order. 3+8/2=7.
    * / + -.

  • @sadikjafrullah
    @sadikjafrullah 3 ปีที่แล้ว +1

    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.

  • @arundhatimallick761
    @arundhatimallick761 4 ปีที่แล้ว +2

    This is the best tutorial 🥰🥰🥰 it's just working well🥰🥰🥰

  • @kadevohn
    @kadevohn 10 หลายเดือนก่อน

    it's a damn fine job youve gone and done with this one brother. the boys are proud of you.

  • @awaisn
    @awaisn 6 ปีที่แล้ว +5

    That was really impressive and fast. Thanks for sharing, really appreciate the hardwork. 🖒

  • @cozimbatman4100
    @cozimbatman4100 7 ปีที่แล้ว +9

    OMG that was awesome. I understand what is going on!! Thank you so much

    • @educationforall4950
      @educationforall4950 5 ปีที่แล้ว

      How to write code for = button

    • @Stl71
      @Stl71 5 ปีที่แล้ว +1

      @@educationforall4950 JButton is the component. Google it.

  • @mansipatil4998
    @mansipatil4998 ปีที่แล้ว

    I liked the background music that's so pleasant and also the content undoubtedly ......

  • @numanmahfuz8118
    @numanmahfuz8118 6 ปีที่แล้ว

    I am from Bangladesh........You Are the Awesome.....Very very thanks UMK Games

  • @emmanuelatundo
    @emmanuelatundo 5 ปีที่แล้ว +2

    I am so grateful for your content man! It was super helpful... Thanks a mill ❤❤❤

  • @RagingCunt
    @RagingCunt 6 ปีที่แล้ว +4

    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

  • @marywambugu6519
    @marywambugu6519 ปีที่แล้ว

    I tried and tested and proven it works

  • @bharathasrimal8641
    @bharathasrimal8641 5 ปีที่แล้ว

    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!!!!!!

  • @Rudra090
    @Rudra090 3 ปีที่แล้ว +1

    Thank you so much sir. I love this video.

  • @user-gx2rh8gn3t
    @user-gx2rh8gn3t 7 หลายเดือนก่อน

    ThankYou Mr. Very good 👏👏

  • @monomaneito2447
    @monomaneito2447 ปีที่แล้ว

    This video helped me a LOT... You earned a sub

  • @edosatolesa4108
    @edosatolesa4108 ปีที่แล้ว

    thank very much you are great man
    10.Q.U !!!!!!

  • @pawanofficialmail1688
    @pawanofficialmail1688 7 ปีที่แล้ว

    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

  • @harshagrawal3618
    @harshagrawal3618 3 ปีที่แล้ว

    Excellent explanation well done keep it up🙏🙏🙏👍👍👍👍👍

  • @anandareza5044
    @anandareza5044 2 ปีที่แล้ว

    Thank you so much for these tutorials. It was easy and really helpful 👍

  • @BrayanEstrada12
    @BrayanEstrada12 3 ปีที่แล้ว

    Thanks bro, you really help me with mi homework :DDD

  • @abenjoymoments
    @abenjoymoments 3 ปีที่แล้ว

    Thanks you so much & Love you brother

  • @kanishkaneo9550
    @kanishkaneo9550 3 ปีที่แล้ว

    thanks a lot
    i create my first software with you

  • @shubhamshashwat5466
    @shubhamshashwat5466 3 ปีที่แล้ว

    Awesome ...

  • @kshitizmayank7208
    @kshitizmayank7208 5 ปีที่แล้ว +2

    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 😚

  • @anas_sh
    @anas_sh 3 ปีที่แล้ว +1

    1:46
    int number;
    number is basically delete position

  • @winxie97
    @winxie97 ปีที่แล้ว

    Love this tutorial

  • @mandvisingh5838
    @mandvisingh5838 7 ปีที่แล้ว +1

    You were a great help. Thank you so much.

  • @bhupathiraj8143
    @bhupathiraj8143 5 ปีที่แล้ว

    Its great explanation without u actually speaking. Thanks buddy.

  • @levi_snowfractal6062
    @levi_snowfractal6062 7 ปีที่แล้ว +1

    You were a big help, thank you.

  • @medjl6083
    @medjl6083 3 ปีที่แล้ว

    you are the best

  • @oikothan
    @oikothan 7 ปีที่แล้ว +1

    Very good tutorial...keep up the good work!!

  • @porcomusic
    @porcomusic 7 ปีที่แล้ว +1

    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

  • @huseynhasanov8162
    @huseynhasanov8162 4 ปีที่แล้ว

    Thanks man. You have done great job.

  • @rithwik1760
    @rithwik1760 5 ปีที่แล้ว +1

    thank you i got exactly what i needed 🙏

  • @PitusPlayGames
    @PitusPlayGames 6 ปีที่แล้ว +5

    4:45 - To remember :D

  • @bspv7529
    @bspv7529 3 ปีที่แล้ว

    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

  • @gazzi7856
    @gazzi7856 4 ปีที่แล้ว

    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)

  • @roblough1008
    @roblough1008 6 ปีที่แล้ว +2

    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?

  • @asifullahsamim4073
    @asifullahsamim4073 5 ปีที่แล้ว +1

    This was amazing man!
    Keep going!

  • @parzival_2000
    @parzival_2000 3 ปีที่แล้ว

    This helped me a lot, thanks. :)

  • @Narshredder
    @Narshredder 3 ปีที่แล้ว

    Thank you, this helped a lot.

  • @ricardosilva9935
    @ricardosilva9935 5 ปีที่แล้ว

    Very good video. Thank you very much !

  • @Rahul-ik9vd
    @Rahul-ik9vd 3 ปีที่แล้ว

    Thanks bro very very thanjs

  • @fernandodominguez1
    @fernandodominguez1 5 ปีที่แล้ว

    Excellent, beautiful, thank you very much.

  • @rodrigo6459
    @rodrigo6459 5 ปีที่แล้ว

    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));
    }

  • @dennismunyaka6537
    @dennismunyaka6537 2 ปีที่แล้ว

    good video man

  • @murtazamohammadi4032
    @murtazamohammadi4032 5 ปีที่แล้ว

    Thanks for uploading this usefull video buddy. I rally appreciat you.

  • @michelesobrosa1339
    @michelesobrosa1339 2 ปีที่แล้ว

    Perfect! Thanks!

  • @psykeyt9592
    @psykeyt9592 2 ปีที่แล้ว

    Thank you so much

  • @talhafarooq6813
    @talhafarooq6813 7 ปีที่แล้ว

    great video with great explanation... thumbs up

    • @bman9965
      @bman9965 3 ปีที่แล้ว

      Wow bro its cool. Tanks a lot

  • @saurabhpandey4351
    @saurabhpandey4351 ปีที่แล้ว

    Best

  • @fernandodominguez1
    @fernandodominguez1 5 ปีที่แล้ว +3

    I don´t have the Packaging menu under Build, someone knows how to fix?. Thank you

  • @FunkaarFaizan
    @FunkaarFaizan 7 ปีที่แล้ว +1

    Amazing Tutorial!

  • @Factikts
    @Factikts 4 หลายเดือนก่อน

    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

  • @ratankumarmurmurevolutioni8476
    @ratankumarmurmurevolutioni8476 4 ปีที่แล้ว

    Nice background music 💙💙

  • @trinhucthang1226
    @trinhucthang1226 5 ปีที่แล้ว

    Amazing Tutorial! thank you

  • @manojtimsina
    @manojtimsina 6 ปีที่แล้ว

    Thank you so much, that was great help me

  • @chaksyt6926
    @chaksyt6926 3 ปีที่แล้ว

    Thank you

  • @marcosgomes7973
    @marcosgomes7973 4 ปีที่แล้ว

    Java is exciting

  • @bilalahmadayobi8198
    @bilalahmadayobi8198 5 ปีที่แล้ว

    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.

  • @mdesrailhaque4169
    @mdesrailhaque4169 3 ปีที่แล้ว

    Wonderful

  • @hempathak7001
    @hempathak7001 6 หลายเดือนก่อน

    but it take only 2 numbers at a time to do airthmetic operation, what if we want multiople numbers airthmetic operations at a time?

  • @sophiebrunelle659
    @sophiebrunelle659 3 ปีที่แล้ว

    Great vidéo !

  • @andrespipe223
    @andrespipe223 6 ปีที่แล้ว

    The BEST!!!!!!!!!! thanks

  • @SonidoCarlosVargas
    @SonidoCarlosVargas 5 ปีที่แล้ว +1

    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...

  • @ademrahman
    @ademrahman 4 ปีที่แล้ว

    dobar tutorial bravo.

  • @kamalmouse5697
    @kamalmouse5697 6 ปีที่แล้ว

    You are good lecturel
    thank u

  • @saedshaheen8451
    @saedshaheen8451 3 ปีที่แล้ว

    thanks

  • @minoriproject4552
    @minoriproject4552 4 ปีที่แล้ว

    How your method to learn java expert like this?? ,good job man

  • @osamamohammad5399
    @osamamohammad5399 6 ปีที่แล้ว

    Great
    Thank you 🌷⚘

  • @derarak
    @derarak 6 ปีที่แล้ว

    thank u very much..........................

  • @tiiito1988
    @tiiito1988 4 ปีที่แล้ว

    And if I type 1 + 1 + 1 + 1 and so on, will the display continue to update the result without pressing the "=" button?

  • @literallyanythingelseother
    @literallyanythingelseother 6 ปีที่แล้ว

    The song overlayed on this is so similar to Boogie wit a hoodie's Drowning

  • @Simleenkaurarora
    @Simleenkaurarora 3 ปีที่แล้ว

    ❤️❤️❤️❤️

  • @whatswrongwithyou1305
    @whatswrongwithyou1305 ปีที่แล้ว

    Can I use int (Integer)instead of Double?
    (No decimal)

  • @lisafox9026
    @lisafox9026 6 ปีที่แล้ว +4

    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

    • @zaheemschemnad5377
      @zaheemschemnad5377 5 ปีที่แล้ว

      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)

    • @educationforall4950
      @educationforall4950 5 ปีที่แล้ว

      How to write code for = button

    • @ak2toj
      @ak2toj 5 ปีที่แล้ว

      pal gume

    • @kristiandecretaels6896
      @kristiandecretaels6896 5 ปีที่แล้ว

      Can i see the whole code? It errors for me i dnt know where to properly put your codes

  • @rh6zner707
    @rh6zner707 2 ปีที่แล้ว +1

    Idk but mine won't run

  • @muhdnazirul4398
    @muhdnazirul4398 3 ปีที่แล้ว

    How to use the int i dont want answer in double

  • @restaurantrecipebyhafsa
    @restaurantrecipebyhafsa 5 ปีที่แล้ว

    what to do when we want to get one number from a text field and second from another and display in a 3rd textfield

  • @gustavokuze
    @gustavokuze 7 ปีที่แล้ว

    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.

    • @gustavokuze
      @gustavokuze 7 ปีที่แล้ว +1

      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);

  • @filipahlberg4643
    @filipahlberg4643 3 ปีที่แล้ว

    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?

  • @thiery572
    @thiery572 5 ปีที่แล้ว

    I like the jar file tutorial.

  • @andrewjoel7012
    @andrewjoel7012 6 ปีที่แล้ว

    Nice video! Please tell me the name of the song played during starting of the video

  • @dipanshusharma9851
    @dipanshusharma9851 8 ปีที่แล้ว

    where have you done the arithmetic operations coding??? in text field aur in which button.??

  • @jaipathak1876
    @jaipathak1876 8 ปีที่แล้ว

    suprbbbbbb work

  • @allesprobieren
    @allesprobieren 3 ปีที่แล้ว

    dude 4:30 What music is that? Soo nice 👌👍

  • @Mihre-ol3bk
    @Mihre-ol3bk 5 ปีที่แล้ว

    man appreciate u thanks...how did u do for pont(.)

  • @Ibander2007
    @Ibander2007 ปีที่แล้ว

    hi hello there, thanks for the video its very clean and i like your backing track can i have it ?

  • @FunkaarFaizan
    @FunkaarFaizan 7 ปีที่แล้ว

    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!

  • @gondarethiopia3197
    @gondarethiopia3197 4 ปีที่แล้ว

    good vidio

  • @TheEpherm
    @TheEpherm 4 ปีที่แล้ว

    Thank you sir :D

  • @Adriane_Deathscythe
    @Adriane_Deathscythe 4 ปีที่แล้ว

    Thanks mattteeeee

  • @technicalsatish24
    @technicalsatish24 4 ปีที่แล้ว

    Thanks bro

  • @rushikeshreddy6615
    @rushikeshreddy6615 4 ปีที่แล้ว

    make a video on how to make GUI for sudoku .