GUI Calculator in JAVA using eclipse ide | Tech Projects

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 238

  • @naturefriend143
    @naturefriend143 9 месяцев назад +6

    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

  • @Realfacts72
    @Realfacts72 5 месяцев назад +1

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

  • @divyajayaramaiah8378
    @divyajayaramaiah8378 3 года назад +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  3 года назад +1

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

  • @marygaming978
    @marygaming978 3 года назад +12

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

  • @jayceehallows
    @jayceehallows 8 месяцев назад

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

  • @VikasGupta-or3co
    @VikasGupta-or3co 10 месяцев назад

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

  • @swetankkumar70
    @swetankkumar70 2 года назад +1

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

  • @prasannaposimsetti2918
    @prasannaposimsetti2918 Год назад

    Thank you so much for your detail explanation sir.

  • @Shivani_7727
    @Shivani_7727 Год назад

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

  • @pratishkedia2020
    @pratishkedia2020 3 года назад

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

  • @prashantchandraker413
    @prashantchandraker413 Год назад

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

  • @yogeshs2470
    @yogeshs2470 4 года назад +1

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

    • @TechProjects
      @TechProjects  4 года назад +1

      Thanks brother keep supporting

  • @b12maths
    @b12maths 4 года назад +2

    keep it up
    excellent work 👍👍👍

  • @rammandal2389
    @rammandal2389 2 года назад

    Thanks a Lot Very Good Keep it up

  • @shreyatiwari3013
    @shreyatiwari3013 Год назад

    Thank you so much for making a simple projects

  • @AdrianeDamasceno-t9v
    @AdrianeDamasceno-t9v 2 месяца назад

    great video!
    helped me a lot
    thank you so much!

  • @linuxchoice1389
    @linuxchoice1389 2 года назад

    Excelent video dude, regards from Uruguay !

  • @SHKBSS
    @SHKBSS 11 месяцев назад

    thank you brother, ypu helped me a lot

  • @manishkandukuri8979
    @manishkandukuri8979 2 года назад

    Excellent work dude

  • @InfotechProgrammer
    @InfotechProgrammer 3 года назад

    Amazing Start

  • @jawariah_naeem
    @jawariah_naeem Год назад

    Thank its informative

  • @anjalibindal7594
    @anjalibindal7594 4 года назад +1

    Keep it up👍👍👍
    Excellent work

  • @usnaummer6932
    @usnaummer6932 2 года назад

    Thanku so much for this video 🤩

  • @rajniprajapati3914
    @rajniprajapati3914 5 месяцев назад

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

  • @gauravrajput4298
    @gauravrajput4298 4 года назад

    Great start Bhai ....

    • @TechProjects
      @TechProjects  4 года назад

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

  • @sarathpv3557
    @sarathpv3557 4 года назад

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

  • @BockiKrompir
    @BockiKrompir 2 года назад +1

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

  • @aayushidhondphale8772
    @aayushidhondphale8772 3 года назад

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

  • @DinkiliMani.
    @DinkiliMani. 9 месяцев назад

    Thank you so much brother ❤❤

  • @Fatima_Mohammed989
    @Fatima_Mohammed989 Год назад

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

  • @vinayvastrakar2788
    @vinayvastrakar2788 Год назад

    Good

  • @hastokegharbaste8021
    @hastokegharbaste8021 2 года назад

    U r nathing u just 👍 great.

  • @xxxtentacionskimask5197
    @xxxtentacionskimask5197 2 года назад

    Nice👍🙂

  • @ritikgusain626
    @ritikgusain626 4 года назад

    Nice work👏

    • @TechProjects
      @TechProjects  4 года назад

      Thnx brother and share the video plzz☺️

  • @AnkitSharma-4899
    @AnkitSharma-4899 4 года назад

    Nice work keep it up brother 👍👍

  • @AniZeroTwo02
    @AniZeroTwo02 7 дней назад

    when you finally understand the code it's look easier hahaha

  • @shalikadissanayake4650
    @shalikadissanayake4650 4 года назад

    Good luck.very clear lesson 👌😍

    • @TechProjects
      @TechProjects  4 года назад +1

      Thanks brother keep supporting

  • @developerscommunity
    @developerscommunity 4 года назад +1

    Good tutorial bro 💙😊

  • @ritulkumarsharma1265
    @ritulkumarsharma1265 4 года назад

    Good work.

  • @sakthimunisamy9219
    @sakthimunisamy9219 2 года назад

    Super

  • @theonlymaster9374
    @theonlymaster9374 Год назад +1

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

  • @AmazingAlmaz
    @AmazingAlmaz 4 года назад

    Thank you very good video

  • @srabanichakraborty5154
    @srabanichakraborty5154 4 года назад

    Very nice

    • @TechProjects
      @TechProjects  4 года назад

      Thanks please subscribe and keep supporting

  • @vincentvinoths6272
    @vincentvinoths6272 3 года назад

    Thank you so much pro

  • @mdnoorzafirmondal7398
    @mdnoorzafirmondal7398 3 года назад +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 3 года назад

      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  3 года назад

      yes it work as quotient reminder

  • @johanHåland
    @johanHåland 3 года назад

    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!

  • @muhdirfansuhaimi7501
    @muhdirfansuhaimi7501 4 года назад

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

  • @WordsAttack1
    @WordsAttack1 4 года назад

    verify ke sath customize bhi kro baki sb ok hai👌

  • @ekaanshmurali8890
    @ekaanshmurali8890 3 года назад

    thanks so much for your help

  • @MudgilSidharth
    @MudgilSidharth 4 года назад

    Big fan

  • @diya8835
    @diya8835 3 года назад

    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  3 года назад +1

      Use infix to postfix

    • @diya8835
      @diya8835 3 года назад

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

    • @diya8835
      @diya8835 3 года назад

      Actually I'm new to coding..

    • @TechProjects
      @TechProjects  3 года назад +1

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

    • @diya8835
      @diya8835 3 года назад +1

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

  • @ChhoeunChanthatOfficial
    @ChhoeunChanthatOfficial 3 года назад

    Thank you so much for this video😍

  • @genalmady8683
    @genalmady8683 2 года назад

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

  • @Gaurav-wy2wm
    @Gaurav-wy2wm 4 года назад

    Good bro 👍

  • @justinemarklurzano2472
    @justinemarklurzano2472 6 месяцев назад

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

  • @khalidhashimeh
    @khalidhashimeh 11 месяцев назад

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

  • @harshbhardwaj2767
    @harshbhardwaj2767 3 года назад +1

    there is no option of application window in the wizard section

  • @laliice7154
    @laliice7154 3 года назад +1

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

  • @sunilbamel6147
    @sunilbamel6147 7 месяцев назад

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

  • @gamebox8560
    @gamebox8560 4 года назад +1

    nice voice bro 😍😍

    • @TechProjects
      @TechProjects  4 года назад

      Thanx brother share the video plzz☺️☺️

  • @AkhilYadav-og4si
    @AkhilYadav-og4si 3 года назад

    Tq so much bro

  • @francisedwarddelrosario8086
    @francisedwarddelrosario8086 3 года назад +1

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

  • @Adhilmc
    @Adhilmc 2 года назад

    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

  • @Jha_hrz
    @Jha_hrz 10 месяцев назад

    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.

    • @BadEditqr.
      @BadEditqr. 10 месяцев назад

      Same won't work 😢

  • @adhirajdogra8416
    @adhirajdogra8416 3 года назад

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

  • @rkp3399
    @rkp3399 2 года назад

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

  • @Papiii_benz
    @Papiii_benz 3 года назад

    Thanks a lot !

  • @akgarg0472
    @akgarg0472 4 года назад +1

    Good tutorial 😍👍🏼

  • @namanmalkani4987
    @namanmalkani4987 2 года назад

    ❤️

  • @kazuto1216
    @kazuto1216 2 года назад

    Bruhhhhhhhh Thank you!!!!

  • @mounikasanika557
    @mounikasanika557 Год назад

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

  • @Adam1llion
    @Adam1llion 3 года назад

    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 3 года назад

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

    • @TechProjects
      @TechProjects  3 года назад

      Check the code please

    • @abhishekanand7373
      @abhishekanand7373 2 года назад

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

  • @firro76
    @firro76 2 года назад

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

  • @kondrisivasankar140
    @kondrisivasankar140 Год назад

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

  • @comrademartinofrappuccino
    @comrademartinofrappuccino 4 года назад

    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  4 года назад

      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

  • @PlayOldGames01
    @PlayOldGames01 Год назад

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

  • @akanshabhardwaj9523
    @akanshabhardwaj9523 2 года назад

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

  • @itti3913
    @itti3913 3 года назад

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

  • @amanraj0412
    @amanraj0412 Год назад

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

  • @JahnaviVaduguru
    @JahnaviVaduguru Год назад

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

  • @StarGirl-up2zr
    @StarGirl-up2zr 2 года назад

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

  • @prabha7976
    @prabha7976 2 года назад

    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

  • @fordzfinland6862
    @fordzfinland6862 2 года назад

    thanks

  • @rohitcreativeworks3865
    @rohitcreativeworks3865 2 года назад

    Why have you taken string at String number?

  • @sayedulabrar2574
    @sayedulabrar2574 3 года назад

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

  • @SURYA-tt5gx
    @SURYA-tt5gx Год назад

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

  • @IshaanSharma7
    @IshaanSharma7 4 года назад

    nice bro!!

    • @TechProjects
      @TechProjects  4 года назад

      Thanks big bro share the video plzz☺️

  • @manishaagarwal4715
    @manishaagarwal4715 8 месяцев назад

    i dont have the option of windows builder

  • @eshu4662
    @eshu4662 4 года назад

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

    • @TechProjects
      @TechProjects  4 года назад

      Install swing deisgner first in your eclipse ide

  • @michaeleagleson8359
    @michaeleagleson8359 4 года назад

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

    • @TechProjects
      @TechProjects  4 года назад

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

  • @stevengerstacker9146
    @stevengerstacker9146 4 месяца назад

    If I want to calculate further with the output it doesn't work with the commas but it just add the number on the display after the comma. Could you help me ?
    My error code is:
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "2,00"
    at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
    at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.base/java.lang.Double.parseDouble(Double.java:651)
    at Taschenrechner2$21.actionPerformed(Taschenrechner2.java:353)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
    at java.desktop/java.awt.Component.processEvent(Component.java:6391)
    at java.desktop/java.awt.Container.processEvent(Container.java:2266)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

  • @aakashkumar9138
    @aakashkumar9138 2 года назад

    Keylistner bhi lagao na veo

  • @navroopchahal5823
    @navroopchahal5823 3 года назад

    What is the meaning of \uF0E7? Like where did you find that out?

    • @TechProjects
      @TechProjects  3 года назад

      Code for backspace character you can easily find it on google

  • @JevHowDoidothis
    @JevHowDoidothis 2 года назад

    I sont see application windows in others after ive right my project

  • @kavitasharma8938
    @kavitasharma8938 4 года назад

    Bro i have same like u all buttons are activated but operations are not performing

    • @TechProjects
      @TechProjects  4 года назад

      You set on event listner on every button?

  • @akii7455
    @akii7455 3 года назад

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

  • @sumei8293
    @sumei8293 4 года назад

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

    • @TechProjects
      @TechProjects  4 года назад +3

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

  • @prachipanwar4459
    @prachipanwar4459 3 года назад

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

    • @TechProjects
      @TechProjects  3 года назад

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

    • @prachipanwar4459
      @prachipanwar4459 3 года назад

      @@TechProjects Tried that, still same error

  • @GAMEZONELITE
    @GAMEZONELITE 4 года назад

    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  4 года назад +1

      Use if else when you press on equal it is better

    • @GAMEZONELITE
      @GAMEZONELITE 4 года назад

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

    • @TechProjects
      @TechProjects  4 года назад

      Thanks brother keep supporting

  • @sawyer909lol
    @sawyer909lol 2 года назад

    Can I get the Source code for it ?