GUI Calculator in JAVA using eclipse ide | Tech Projects

Sdílet
Vložit
  • čas přidán 2. 04. 2020
  • Simple GUI calculator in java using eclipse ide in easy and better way with desktop icon also and in 18 min only.
    -----------------------------------------------------------------------
    Disclaimer:
    This video is for educational purpose only.
    Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "FAIR USE" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research.
    "FAIR USE" is a use permitted by Copyright Statute that might otherwise be infringing.
    Non-profit, Educational or Personal use tips the balance in favour of Fair Use.
    ------------------------------------------------------------------------
    If you think that I have used your property in my video by mistake then I am ready to give you whole credit.
    You can contact me on my Email or Instagram Id.
    Email Is :- brijeshtechprojects@gmail.com
    Instagram Is :- / tech__projects
    ------------------------------------------------------------------------
    Visit My Channel Playlists for amazing Content
    Click Here to Check All Android Projects:- • Android Projects
    Click Here to Check All Java GUI Projects:- • JAVA Projects
    Click Here to Check All Basic Programming Information:- • Basic Programming Info...
    Click Here to Check Git and GitHub Series:- • Git and GitHub Series
    Click Here to Check All Web Development Projects:- • Html , css , JavaScript
    Click Here to Check All Python Projects:- • Python
    Click Here to Check All C Language Projects:- • C Language Projects
    Click Here to Check Quiz App In Android Studio:- • Quiz App in Android St...
    Click Here to Check Guess the Output Series In C Language:- • Guess the output | Pr...
    Click Here to Check Tips And Tricks:- • Playlist
    Click Here to Check Weather App in Android Studio:- • Weather App in Android...
    -----------------------------------------------------------------------
    Follow My Instagram Page For Best Coding Content Daily :- / tech__projects
    Visit My GitHub Profile for All Projects Source Codes:- github.com/Brijesh-kumar-sharma
    ------------------------------------------------------------------------
    Thanks For Watching
    If you have Any Query Comment Down Below
    Thank You
    Tech Projects
    Gui calculator in java
    gui calculator in java
    how to make gui calculator in java
    how to make calculator in java
    tech projects
    Tech Projects
    Tech projects
    techprojects

Komentáře • 237

  • @linuxchoice1389
    @linuxchoice1389 Před rokem

    Excelent video dude, regards from Uruguay !

  • @swetankkumar70
    @swetankkumar70 Před rokem +1

    Thank you for this informative video. You explained these details so easily .

  • @marygaming978
    @marygaming978 Před 3 lety +12

    Thank you so much 🌼 I just got A+ in this project 💛✨

  • @Realfacts72
    @Realfacts72 Před měsícem +1

    Thanku bro successfully calci done by watching ur video ❤❤❤🎉

  • @Fatima_Mohammed989
    @Fatima_Mohammed989 Před rokem

    THANK YOU SM for this video!!! Helped a lot

  • @InfotechProgrammer
    @InfotechProgrammer Před 3 lety

    Amazing Start

  • @shreyatiwari3013
    @shreyatiwari3013 Před rokem

    Thank you so much for making a simple projects

  • @divyajayaramaiah8378
    @divyajayaramaiah8378 Před 3 lety +5

    Hello, good one. I have tried this and has worked out well, although I have a small some improvisation.
    you can initialise the operation variable after each if/if else clause. This shall avoid further operations to carry on after each press of "=" symbol.

    • @TechProjects
      @TechProjects  Před 3 lety +1

      Thanks for this suggestion it will definitely help a lot of people

  • @anjalibindal7594
    @anjalibindal7594 Před 4 lety +1

    Keep it up👍👍👍
    Excellent work

  • @Shivani_7727
    @Shivani_7727 Před 11 měsíci

    Thanks a lot it helps me for creating my mini project...😊😊❤❤

  • @prasannaposimsetti2918
    @prasannaposimsetti2918 Před 8 měsíci

    Thank you so much for your detail explanation sir.

  • @manishkandukuri8979
    @manishkandukuri8979 Před rokem

    Excellent work dude

  • @pratishkedia2020
    @pratishkedia2020 Před 3 lety

    It's easier than other youtubers who take a hour to make a calculator

  • @jayceehallows
    @jayceehallows Před 4 měsíci

    Thank you for showing us your skills. Nice job. :)

  • @b12maths
    @b12maths Před 4 lety +2

    keep it up
    excellent work 👍👍👍

  • @rammandal2389
    @rammandal2389 Před rokem

    Thanks a Lot Very Good Keep it up

  • @VikasGupta-or3co
    @VikasGupta-or3co Před 6 měsíci

    Thank you so much brother it my second learning project it works

  • @sarathpv3557
    @sarathpv3557 Před 3 lety

    Great work...Thanks bro...Keep rocking....Helped me a loot.

  • @usnaummer6932
    @usnaummer6932 Před rokem

    Thanku so much for this video 🤩

  • @yogeshs2470
    @yogeshs2470 Před 3 lety +1

    Thanks a lot fabulous vedio❤️🔥 only bcoz of u I completed my first project in java 🎉

  • @ChhoeunChanthatOfficial

    Thank you so much for this video😍

  • @SHKBSS
    @SHKBSS Před 8 měsíci

    thank you brother, ypu helped me a lot

  • @gauravrajput4298
    @gauravrajput4298 Před 4 lety

    Great start Bhai ....

    • @TechProjects
      @TechProjects  Před 4 lety

      Thank you brother share the video plzz...☺️

  • @developerscommunity
    @developerscommunity Před 3 lety +1

    Good tutorial bro 💙😊

  • @ritikgusain626
    @ritikgusain626 Před 4 lety

    Nice work👏

    • @TechProjects
      @TechProjects  Před 4 lety

      Thnx brother and share the video plzz☺️

  • @ankitsharma8525
    @ankitsharma8525 Před 4 lety

    Nice work keep it up brother 👍👍

  • @DinkiliMani.
    @DinkiliMani. Před 5 měsíci

    Thank you so much brother ❤❤

  • @xxxtentacionskimask5197

    Nice👍🙂

  • @Jawariah-hk4os
    @Jawariah-hk4os Před 8 měsíci

    Thank its informative

  • @ritulkumarsharma1265
    @ritulkumarsharma1265 Před 4 lety

    Good work.

  • @Papiii_benz
    @Papiii_benz Před 3 lety

    Thanks a lot !

  • @vincentvinoths6272
    @vincentvinoths6272 Před 3 lety

    Thank you so much pro

  • @prashantchandraker413

    Thanku so much sir...
    Please make video using java eclipse and MYsql

  • @Gaurav-wy2wm
    @Gaurav-wy2wm Před 4 lety

    Good bro 👍

  • @ekaanshmurali8890
    @ekaanshmurali8890 Před 3 lety

    thanks so much for your help

  • @kazuto1216
    @kazuto1216 Před 2 lety

    Bruhhhhhhhh Thank you!!!!

  • @gamebox8560
    @gamebox8560 Před 4 lety +1

    nice voice bro 😍😍

    • @TechProjects
      @TechProjects  Před 4 lety

      Thanx brother share the video plzz☺️☺️

  • @sakthimunisamy9219
    @sakthimunisamy9219 Před 2 lety

    Super

  • @BockiKrompir
    @BockiKrompir Před 2 lety +1

    I dont know if I missed something, but when I click dot it doesnt work properly. Any solutions?

  • @AmazingAlmaz
    @AmazingAlmaz Před 3 lety

    Thank you very good video

  • @vinayvastrakar2788
    @vinayvastrakar2788 Před rokem

    Good

  • @johnnyhovek
    @johnnyhovek Před 2 lety

    Dude amazing thank you! Everything helped but, when I exported it and launched it on my desktop it said an JNI Error Occurred please check your installation and try again. Please help me!

  • @hastokegharbaste8021
    @hastokegharbaste8021 Před 2 lety

    U r nathing u just 👍 great.

  • @AkhilYadav-og4si
    @AkhilYadav-og4si Před 2 lety

    Tq so much bro

  • @srabanichakraborty5154

    Very nice

    • @TechProjects
      @TechProjects  Před 4 lety

      Thanks please subscribe and keep supporting

  • @francisedwarddelrosario8086

    Can you explain why str.toString() was able to convert string when str.deleteCharAt(textField.getText().length()-1) was not saved into memory?
    JButton btnBackspace = new JButton("\uF0E7");
    btnBackspace.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    String backspace = null;
    if (textField.getText().length() > 0) {
    StringBuilder str = new StringBuilder(textField.getText());
    str.deleteCharAt(textField.getText().length()-1);
    backspace = str.toString();

    textField.setText(backspace);
    }
    }
    });

  • @namanmalkani4987
    @namanmalkani4987 Před 2 lety

    ❤️

  • @adhirajdogra8416
    @adhirajdogra8416 Před 3 lety

    I did everything but it in the equal to area it shows that return needs to be an object instead of a double

  • @MudgilSidharth
    @MudgilSidharth Před 3 lety

    Big fan

  • @shalikadissanayake4650

    Good luck.very clear lesson 👌😍

  • @mdnoorzafirmondal7398
    @mdnoorzafirmondal7398 Před 3 lety +2

    I have a query : % in normal calculators used to find percentage, but here we code " first % second " which will give the mod value, is that ok?

    • @mdnoorzafirmondal7398
      @mdnoorzafirmondal7398 Před 3 lety

      For 4 operators if we take second variable inside their respective if statement and for % operation within else if if we write :
      result = first/100;
      answer = Double.toString(result);
      answer = String.format("%.2f", result);
      textField.setText(answer);
      then % in this code is working like it does in mobile calculators

    • @TechProjects
      @TechProjects  Před 3 lety

      yes it work as quotient reminder

  • @1starbrainfire
    @1starbrainfire Před 9 měsíci +2

    260 lines for a calculator? 😱

  • @genalmady8683
    @genalmady8683 Před 2 lety

    كان فيديو رائع جدا

  • @laliice7154
    @laliice7154 Před 3 lety +1

    Bro please can u help me, i don't know why the palette is empty??

  • @Adhilmc
    @Adhilmc Před 2 lety

    here you wrote the code to do arithmetic operations using only two numbers
    how can i do that operations using multiple numbers
    for eg : 2+2+6 =10

  • @firro76
    @firro76 Před 2 lety

    in my eclipse window builder properties are not see it is 3
    white blank window and one black window for components why ?please help.

  • @Adam1llion
    @Adam1llion Před 3 lety

    Not matter what I do my "=" operation always adds the first and second variables together? The -, * and / do not work as intended. I have doubled my code and even changed the "+" to a "-" on the first if statement and keep getting the same result.

    • @Adam1llion
      @Adam1llion Před 3 lety

      And what is this part "%.2f" I don't understand what it is?

    • @TechProjects
      @TechProjects  Před 3 lety

      Check the code please

    • @abhishekanand7373
      @abhishekanand7373 Před 2 lety

      @@Adam1llion In the result the floating no can only have two numbers after the point. E.g- the calculated result is 10.763948 but is shows only two digits rounded after the point 10.77

  • @harshbhardwaj2767
    @harshbhardwaj2767 Před 3 lety +1

    there is no option of application window in the wizard section

  • @theonlymaster9374
    @theonlymaster9374 Před rokem

    in my eclips there is no swing designer, nor window application folder, what should i do??

  • @rajniprajapati3914
    @rajniprajapati3914 Před měsícem

    Hi... explanation is very well ...can u plz share the source code?

  • @akgarg0472
    @akgarg0472 Před 4 lety +1

    Good tutorial 😍👍🏼

  • @justinemarklurzano2472
    @justinemarklurzano2472 Před 2 měsíci

    how did you change the variable name example button_1 to btn1?

  • @fordzfinland6862
    @fordzfinland6862 Před 2 lety

    thanks

  • @khalidhashimeh
    @khalidhashimeh Před 7 měsíci

    Thank you.. How do you turn it into an exe file extension?

  • @comrademartinofrappuccino

    i made my calculator at 27 april 2020. program does not recognise textField als a valid class,why did it not declare the variable automatically?

    • @TechProjects
      @TechProjects  Před 4 lety

      May be ur text field with different name so it does not get recognise
      Check your text field name by click on text field and after click you see properties of its on left side.
      If error is still come after checking this then tell me i give you my email id then send me pic of the error

  • @muhdirfansuhaimi7501
    @muhdirfansuhaimi7501 Před 3 lety

    omg thnks so much i hope you will be success one day

  • @aayushidhondphale8772
    @aayushidhondphale8772 Před 2 lety

    excellent work.. really 👏 but I think we haven't written code for C Button

  • @michaeleagleson8359
    @michaeleagleson8359 Před 3 lety

    why do i get an error after making the class calci, i downloaded all the add ons needed

    • @TechProjects
      @TechProjects  Před 3 lety

      Try to restart and perform every operation again
      Maybe you Missed something

  • @StarGirl-up2zr
    @StarGirl-up2zr Před 2 lety

    can we add 3D effect here ?? if so then how

  • @Jha_hrz
    @Jha_hrz Před 6 měsíci

    hey thanks for the code but how do i fix it when i run it as a runnable jar file? it says "A java exception has occured." Please, i need it for class ty.

  • @akanshabhardwaj9523
    @akanshabhardwaj9523 Před 2 lety

    Bhaiya Swing design agr option mai hi nhi h toh kya krna chahiye(kyuki yeah eclipse mai show nhi ho raha h ?

  • @diya8835
    @diya8835 Před 3 lety

    Very nicely taught but plz also tell that how to do any respective operation repeatedly like 2+3+5+6= ? Like this pattern...

    • @TechProjects
      @TechProjects  Před 3 lety +1

      Use infix to postfix

    • @diya8835
      @diya8835 Před 3 lety

      Will u please explain it a little... Plz 🙏

    • @diya8835
      @diya8835 Před 3 lety

      Actually I'm new to coding..

    • @TechProjects
      @TechProjects  Před 3 lety +1

      Use Google for this that one is big topic hope you understand

    • @diya8835
      @diya8835 Před 3 lety +1

      @@TechProjects Okay bro, Thank you for ur help till now🙏

  • @naturefriend143
    @naturefriend143 Před 5 měsíci

    How to install windowbuilder in eclipse ide :
    help->install new software->select all available sites in work with->search WindowBuilder-> select general purpose tools -> in details mark first 2 boxes and unbox next 2 boxes->next->next->click accept->click finish->after installation click restart now. It will available in eclipse ide

  • @mounikasanika557
    @mounikasanika557 Před 11 měsíci

    Sir I don't have swing design option . please can you explain what i do?

  • @IshaanSharma7
    @IshaanSharma7 Před 4 lety

    nice bro!!

    • @TechProjects
      @TechProjects  Před 4 lety

      Thanks big bro share the video plzz☺️

  • @PlayOldGames01
    @PlayOldGames01 Před rokem

    I am getting format error while writing for Equal button can you help me out

  • @itti3913
    @itti3913 Před 2 lety

    My design part is not coming where and how do I get the design ?

  • @sunilbamel6147
    @sunilbamel6147 Před 3 měsíci

    I tried your code it works perfect but the answer is editable what is the solution please tell

  • @prabha7976
    @prabha7976 Před 2 lety

    Can you plz help me my design is not coming it is showing error it says jawa.awt package is not accessible...can you plz help me

  • @akii7455
    @akii7455 Před 2 lety

    why mine on 8:02 have null word before the number 1? :((

  • @WordsAttack1
    @WordsAttack1 Před 4 lety

    verify ke sath customize bhi kro baki sb ok hai👌

  • @amanraj0412
    @amanraj0412 Před rokem

    answer=String.format("%.2f", result);
    got error in format word as it say to convert double result to object result
    after converting first+second word error say convert to double..............?????

  • @kondrisivasankar140
    @kondrisivasankar140 Před rokem

    can we share the final project so that others can use it

  • @GAMEZONELITE
    @GAMEZONELITE Před 3 lety

    How to try catch for Mathematical error? Been trying to make a try catch for 0 divided by 0, but it only crash the program, not catch it.

    • @TechProjects
      @TechProjects  Před 3 lety +1

      Use if else when you press on equal it is better

    • @GAMEZONELITE
      @GAMEZONELITE Před 3 lety

      @@TechProjects Holy shit dude!!!!! I can't believe it actually work!!! THANK YOU SO MUCH!!!!!!

    • @TechProjects
      @TechProjects  Před 3 lety

      Thanks brother keep supporting

  • @eshu4662
    @eshu4662 Před 3 lety

    bro i am not able to get the window builder option in the process .....can u plz help me out

    • @TechProjects
      @TechProjects  Před 3 lety

      Install swing deisgner first in your eclipse ide

  • @rkp3399
    @rkp3399 Před 2 lety

    All the program are very good for calculator, but percentage option is not clear in your demonstration... please clear it ...:-(

  • @sumei8293
    @sumei8293 Před 4 lety

    i am not getting "windows builder" option. Any other way? kindly help me asap.

    • @TechProjects
      @TechProjects  Před 4 lety +3

      Watch my of how to install java
      On that video i also show how to install window builder in eclipse ide

  • @JahnaviVaduguru
    @JahnaviVaduguru Před 8 měsíci

    where is application window option is not available for me wt can I do now

  • @SURYA-tt5gx
    @SURYA-tt5gx Před 11 měsíci

    In my eclipse it not showing application window what i need to do

  • @GenjaOrigins
    @GenjaOrigins Před 2 lety

    why i dont see all icons of the gui in my design tab?

    • @GenjaOrigins
      @GenjaOrigins Před 2 lety

      i dont see the whole gui. At top right there should be minimize icon maximize icon and close window icon and i see only 1 and if i change the size of gui i can see sometimes 2 of the three

  • @RohitKumar-uk8vx
    @RohitKumar-uk8vx Před 3 lety

    How can i rectify the class not found exception?

  • @multipleproduction4418

    bhai according to choice toh kuch bhi nhi ho rha hai
    kisi bhi object ka size according to choice set nhi ho paa raha hai
    pta nhi kyu

  • @prachipanwar4459
    @prachipanwar4459 Před 3 lety

    when i am ecxporting, its showing A JNI error has occurred, please check your installation and try again in Eclipse

    • @TechProjects
      @TechProjects  Před 3 lety

      I uploaded a video how to convert java project in exe so please check that

    • @prachipanwar4459
      @prachipanwar4459 Před 3 lety

      @@TechProjects Tried that, still same error

  • @manishaagarwal4715
    @manishaagarwal4715 Před 4 měsíci

    i dont have the option of windows builder

  • @sayedulabrar2574
    @sayedulabrar2574 Před 2 lety

    bro everything was fine but it does not work from the desktop icon.

  • @rohitcreativeworks3865

    Why have you taken string at String number?

  • @aakashkumar9138
    @aakashkumar9138 Před 2 lety

    Keylistner bhi lagao na veo

  • @sawyer909lol
    @sawyer909lol Před 2 lety

    Can I get the Source code for it ?

  • @ict_com_morales_izabel9948

    why my calculator error in else if

  • @chpratibha4274
    @chpratibha4274 Před 3 lety

    Hii Bro...I'm unable to get 00 and % sign over here due to string editor error
    Please help me out...how to resolve this error🙏