Java Calculator App Development Tutorial 1 | Swing | GUI

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

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

  • @Alex-er7lb
    @Alex-er7lb 5 лет назад +6

    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

  • @dulaozinho
    @dulaozinho 6 лет назад +17

    just a single comments, always use first letter UPPERCASE in java classes.
    Good job for ur video !!!

  • @sanketdhanawade3292
    @sanketdhanawade3292 7 лет назад +7

    awesome easiest and understandable methods used best way to go for beginners no complicated stuff

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

    Your tutorial makes it easier to understand everything. THANK YOU SO MUCH!

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

    I must say... i'm impressed by your teaching its nice
    great job

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

    I am beginner and I am from Uzbekistan I undustand english language but not wery well . thanks for video I liked it

  • @icscelticstraining8996
    @icscelticstraining8996 4 года назад +27

    I never can understand why people make good videos without verbal instructions

    • @Emoechaiti
      @Emoechaiti Год назад +2

      Don't want to get bullied for their voice and accent

    • @omarelkomy1875
      @omarelkomy1875 Месяц назад

      this man has about 5k video in his channel why he will accent you​@@Emoechaiti

    • @rameshdahal1094
      @rameshdahal1094 Месяц назад

      Because The Genius persons are always Calm and Patient. They always focus on work.

    • @swagatadas5121
      @swagatadas5121 День назад

      Ig it's more about not having the enough resources for buying equipment to do that

  • @gamingwithahsan935
    @gamingwithahsan935 4 года назад +4

    Great sir i am also a beginner studnet of OOP Java 🤗

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

    It's a very task for java developers.

  • @farzero
    @farzero 8 лет назад +12

    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!

  • @sourabhmalik4351
    @sourabhmalik4351 7 лет назад +1

    your video is the best video.please continuously make videos like this. you have the great knowledge of java ide.

  • @waqarmughal4489
    @waqarmughal4489 8 лет назад +8

    i can't define my hapiness

  • @vickneshg1053
    @vickneshg1053 7 лет назад +2

    Awesome video man........ I learn lot of things in this video....... Thank you very much

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

    Thank you very much.
    You helped a lot.
    I've written a thousand java programs but not yet.

  • @bubleblue6519
    @bubleblue6519 Месяц назад

    makasi bang sangat bermanfaat bagi coding pemula🎉

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

    Thank you very much sir. GOD bless you.

  • @kalpanabal2132
    @kalpanabal2132 5 лет назад +1

    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

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

    simple programming but very effective sir. thanx thanx

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

    Very Thanks to you for making such projects ..Its very helpful for beginners, kIndly make more projects on java.

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

    very instereting. thank you Ras Tech

  • @mithun1st
    @mithun1st 6 лет назад +4

    you can use substring method for backspace button )
    //backspace button code
    String s=txtField.getText();
    textField.setText(s.substring(0, s.length()-1));

  • @Alex.C873
    @Alex.C873 2 года назад

    10:40 and your explaining really continue like this +one sub!

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

    I don't know who is this guy but I love this content 😁

  • @suyogamin1859
    @suyogamin1859 6 лет назад

    Ultimate bro
    I liked your number concatenation technique

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

    I think to this is a very important video

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

  • @sermaximus
    @sermaximus 6 лет назад +20

    I can it display something like "MATHS ERROR"

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

    Is the video using WindowBuilder plug in for eclipse?

  • @АзилаУркунбаева
    @АзилаУркунбаева 3 года назад

    Thank you very much.

  • @izack0ldtn902
    @izack0ldtn902 5 лет назад +2

    Great tutorial man !

  • @skyler948
    @skyler948 3 года назад +10

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

  • @yixunnnn
    @yixunnnn 7 лет назад +5

    Your videos are the best!

    • @ResumingWindows
      @ResumingWindows 7 лет назад

      Watch my videos too....
      ruclips.net/video/7PS1sll-FFI/видео.html

  • @VuHoang-sj7ju
    @VuHoang-sj7ju 5 лет назад

    Thank u very much, I have learned a lot

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

    I was useful this . Thank you so much..😍

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

    Sir which ide, you are using in this video

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

    Great background music here, please could you share the artist, title and link. Thank you

  • @mrn7460
    @mrn7460 8 лет назад +28

    thank you, i understand all . Good teacher .but you forgot equal (=)

    • @chandnik7647
      @chandnik7647 5 лет назад +3

      What r use code of = ??...in this calculator

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

      @@chandnik7647 nice english m8

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

      @@zsnails5892 lolol

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

      zSnails mfw i find out that not everybody has English as a first language

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

      No bro he have decided about = you don't have watch the next video

  • @ufotofu9
    @ufotofu9 6 лет назад +36

    Thanks for this. I spaced put for a bit and thought from the music that I was watching a porno from the 70s.

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

      I learned from him a lot

  • @themain6664
    @themain6664 5 лет назад

    Very nice to watch, the background music is very relaxing while learning.

  • @rimesx2
    @rimesx2 6 лет назад +1

    Thank you for this tutorial its very helpfull

  • @alexanderaguilar2263
    @alexanderaguilar2263 4 года назад +14

    how to apply logic like, adding multiples numbers , for ex: 1+2+4+4+3

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

      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.

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

      1+2+4+4+3 = 14

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

      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

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

      You’ll have to use a postfix algorithm to be able to do that.

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

      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

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

    How do you highlight your cursor with that yellow cirlce?

  • @PAUL-ky4dq
    @PAUL-ky4dq 3 года назад +2

    Nostalgic. Last year when I cant write single line of code I watched this about 5 times😅

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

    Nice , idea.

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

    If you will add your voice for explanation we will understand nicely.

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

    Thanks a lot and keep it up

  • @muhammadibadofficial
    @muhammadibadofficial 5 лет назад

    That's good but does this software is net bean...????

  • @Test73936
    @Test73936 6 лет назад

    best video for trainee.

  • @revelswarrior2815
    @revelswarrior2815 5 лет назад +3

    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

  • @Anna-iz4dg
    @Anna-iz4dg 3 года назад

    Thank you so much!!!

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

    Can i make this on blue j?

  • @dhevanrajandran7632
    @dhevanrajandran7632 5 лет назад

    This video was really useful :)

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

    GOOD JOB

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

    When i'm running project I'm getting no main classes found. What can I do??

  • @pawanofficialmail1688
    @pawanofficialmail1688 7 лет назад +2

    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

  • @ahmadafrian9112
    @ahmadafrian9112 5 лет назад

    very good

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

    Now, in eclipse 🤗

  • @voon2770
    @voon2770 5 лет назад

    should i learn how to actual write the jframe code?
    or just use the design tools provided by netbean in the video?

    • @SomeGuy-ye8it
      @SomeGuy-ye8it 5 лет назад

      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.

  • @janani.agencies8976
    @janani.agencies8976 5 лет назад

    U r superb u can make a full course on gui in netbeans using Java

  • @tuanlethanh6159
    @tuanlethanh6159 5 лет назад

    Thank you very mụch

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

    is it possible to create GUI without using pallete and automatic template like that? (I don't really know what's that called)

  • @yolamontalvan9502
    @yolamontalvan9502 5 лет назад +3

    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.

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

    Mast

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

    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

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

      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

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

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

  • @taherhuzefa6790
    @taherhuzefa6790 5 лет назад +1

    You can just make a 2D array of JButtons and iterate over it using a for loop to set it to false

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

    In which application are you running the program?
    Please let me know as I am finding the application from a week!

  • @vincent.fernandez
    @vincent.fernandez 4 года назад

    Is this possible in eclipse?

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

    Funny how this was in my recommended after I decided to try and build a calculator myself without watching a tutorial

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

    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

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

      I think you need the JFormDesigner eclipse plug-in

  • @JC-fd8ho
    @JC-fd8ho 4 года назад

    dude what is this jtextfield how did u get that ? thx

  • @eugenemartin7475
    @eugenemartin7475 5 лет назад +31

    there was no need of adding on/off button it is not running on battrey

  • @kaukostarwind
    @kaukostarwind 7 лет назад +1

    Amazing video. Thanks!!

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

    I am asking that There is no need to write a code just edit will be required for making calculator???

  • @missFrill
    @missFrill 7 лет назад +1

    this is so helpful! I really hate the new Windows 10 calculator.

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

    what is the title of music.. btw?

  • @altaccount8749
    @altaccount8749 6 лет назад +3

    If it's a virtual calculator why would you need to turn it off?

  • @thiery572
    @thiery572 5 лет назад

    Interesting. Thanks.

  • @ItsMe-fj1co
    @ItsMe-fj1co 5 лет назад

    why you dont use loops for setEnabled()?

  • @granav5240
    @granav5240 5 лет назад

    so cool! thank you very much!!!

  • @edwardpotapov6693
    @edwardpotapov6693 5 лет назад

    Tip of the Fedora to you good sir!

  • @LEMIZO
    @LEMIZO 5 лет назад +2

    waths the name from the music? 2:35

    • @GAME-jn1ft
      @GAME-jn1ft 4 года назад

      CHEEKI BREEKI isthe song

  • @soufianta8374
    @soufianta8374 3 года назад +6

    Hi. Is Java still worth it to learn in 2021 (instead of languages like golang etc.)? Thanks

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

      Yes

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

      Yes, example: minecraft
      Lol

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

      Java is worth and good to learn.. Java will not be obsolete. Java is magic...

  • @abhiramshivaprasad2713
    @abhiramshivaprasad2713 7 лет назад +10

    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.

    • @sufyanparkar9790
      @sufyanparkar9790 7 лет назад

      Abhiram Shivaprasad u know how to do it in notepad

    • @hayden0211
      @hayden0211 6 лет назад +3

      notepad isnt an IDE. its just a text editor

    • @MaartenvanHeek
      @MaartenvanHeek 5 лет назад

      @@hayden0211 that doesn't mean you can't use it for programming. In the end, all source code is just plain text.

  • @saubhagyasrivastava1241
    @saubhagyasrivastava1241 7 лет назад

    Cannot make a static reference to the non-static method setText(String) from the type JTextComponent while setting up the SetText

  • @2dstriker292
    @2dstriker292 Год назад

    in android 🤔

  • @Chupacake23
    @Chupacake23 6 лет назад +4

    Great channel, wish you had more examples of projects in Java :D

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

    Can you give a video about Joomla Web design

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

    Why I have eroor in jButton..... I cannot find the solution.

  • @jonbrandre3006
    @jonbrandre3006 7 лет назад

    Can you change the autocomplete keybind in the settings? Its really annoying being ctrl+space...
    can you maybe change it to tab?

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

    12:05 this makes me cry

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

    thanks

  • @MinhNguyen-yc9jc
    @MinhNguyen-yc9jc 5 лет назад

    good

  • @keshavnaharwar5515
    @keshavnaharwar5515 7 лет назад

    are you using eclips or ntbns?

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

    Can u teach us how to code this using notepad++

  •  5 лет назад

    great.

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

    Hello
    My question is how to connect java frame application access database

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

    interessant pour une programmation

  • @cpuwrite
    @cpuwrite 5 лет назад

    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.

    • @whitebeartigtig
      @whitebeartigtig 5 лет назад

      But the code can be copied
      I can make a tutorial if you would like

    • @cpuwrite
      @cpuwrite 5 лет назад

      @@whitebeartigtig Please. I would be most grateful.

  • @lightningnsc2922
    @lightningnsc2922 5 лет назад +2

    Bro we want explanation how to make it easy and in understandeable way

  • @jdro_10
    @jdro_10 5 лет назад +38

    wouldn't it be easier if you did this?
    for(int i = 1; i

    • @mauriciocortazar9604
      @mauriciocortazar9604 5 лет назад +7

      Indeed it would. However netbeans doesn’t generate the buttons as an array.

    • @h-a-y-k4149
      @h-a-y-k4149 5 лет назад

      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.

    • @al-nassermunding9793
      @al-nassermunding9793 5 лет назад

      You can change the name of the button and do that one.