Added: 3 years ago
From: mdumser
Views: 32,054
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (62)

Sign In or Sign Up now to post a comment!
  • verryy good i am beginner for swings ,it ws verry helpfull

    to save memory u culd have used boolean :) rather that =0 and >0 ,boolean is meant fr the same :)

  • I have a small improvement: As the code is now, you can click the decimal-button after the equals(answer)-button and get a second decimal in the display - yielding an error. To remove this way of adding a second decimal, add a new variable called "int equalsClick;" in the top of the code. In the code for the clear button add: "equalsClick=0;" and in the equals-button code add: "equalsClick=1;". Finally in the decimal-button code replace the "if" code with "if(decimalClick==0 && equalsClick==0)"

  • @251progression hey dude, thx fr highlighting

    same was in my mind earlier :)

    by the way,there is no need to take another variable,

    jst make decimalClick=1 on equal to press.

  • thanx for the tutorials, its help me alot

  • not complete ¬¬

  • tnx much for this... ^_^ hope you can share more good application using netbeans... here is my email: act_fellado@yahoo.com

    tnx much2x...

  • man how about backspace? can anyone help me with backspace??

  • @xXxjheyxXx try this StringBuilder sb=new StringBuilder(display.getText(­)); sb=sb.delete(sb.length()-1, sb.length()); display.setText(sb.toString())­;

  • yeah its so helping and enjoyable. thank for video. but i think there should a tag on display cause we try to calculate a huge amount the numbers are out of display. is this possible to restrict display up to limited numbers??

  • yes

  • @mdumser mdumser im having trouble with the clear button

    

  • thanks for doing this video, i learned a lot . Though the +/- button couldn't make it work

  • @emartinez117

    +/- button works

    use this code on button: plusminus = (Double.parseDouble(String.val­ueOf(display.getText()))); plusminus = plusminus*(-1); display.setText(String.valueOf­(plusminus));

  • thanks very much. Happy Easter man!

  • so, when you type all these things and finish calculator, does it only works on PC or I can send this to my cell phone ( of course the one that supports java ) and use it normaly ? thanks

  • a million thanks to you mdumser!!! u're d best! :)) God bless you!

  • Thank u

  • thanxxxx

  • vielen dank mdumuser...du bist sehr nett!

    bist du die Deutschejunge?

  • THANK YOU SO MUCH BROW!!!

    god bless

  • Thank you bro!

  • Thank You very much ^______^

    You help me!!!

  • Comment removed

  • ThankSSSSSSSSSSSSSSSSSSSSSSSSS­SSSSSSSSSSSSSSSSSSSSSSS

  • thanks my brother......

  • What about multiple "0"'s and "." at the beggining? 

  • Dúvida!!!

    Como faz para fazer isso?

    10+10+10=30 e não 10+10+10=20

    eu não consegui fazer ela funcionar deste modo, fica sendo obrigado a pressionar = sempre

  • @ajon101180 even i didn't understood what u said, but the example makes it clear, there is another

    click 5 => Display = "5"

    click any operator => First double = "5" & Display = ""

    click any operator again => First double = ""

    ERRORRRR

  • Aula muito boa, estou comecei a gostar de programar em Java

  • Thanks Mike

  • Thanks Mike!!

  • Thanks ;)

  • !(display.getText().contains("­.")) is a lot easier than this guys, just put that in ur if statement

  • Thank you a lots... I am starting with Java and I learned so much here... Thank you..

  • GRACIAS MEN...THANKS...BUT IF YOU DO

    14+2-5, FOR EXAMPLE, YOU NEED CHANGE THE CODE TO

    private void minusActionPerformed(java.awt.­event.ActionEvent evt) { firstdouble=(Double.parseDoubl­e(String.valueOf(display.getTe­xt()))); display.setText(""); minusclick=1; plusclick=multiplyclick=divide­click=0; decimalclick=0; }

    AND DO THE SAME CHANGE TO THE +,* AND / BUTTONS...

  • @smr90050858366 I cannot make that change work properly :(

  • do you have a podcast or something like it?!

  • tres bien ! how make that the numbers still in display and show operation what you for example 44+66 and after you put equals it show 100

  • Hey did u think about this? if some one press 0 at the beginning then he press 1 so there will be a number like

    "01"

    so we should also prevent keeping '0' as the first digit !!! Got it ?

  • aguante mdumser

  • Gracias, bastante bueno.

  • sehr gutes Video mit lerneffekt!

    das ein oder andere mal konnte man den Quellcode schlecht lesen aber ansonsten TOP!

  • Danke fuer den Kommentar. Du meinst bei Nummer Drei(?), ja da ging mir die Zeit aus um es wieder zumachen.  :)

  • Thank you very much!!!!!!!!!!

    but there is another think to make the decimal work correctly by adding

    to posneg button this line

    decimalClik=1;

    because it set as decimal

  • the same think to equal button

  • excelente

  • sos un groso

  • great!!!!!!!!!!!!

    i loved it!!!!!!!!!11

  • that is very useful but is there a way to run it without netbeans open plz respond

  • Not sure, maybe by running it through DOS.

  • build it in netbeans then go to the dist folder under where you saved it and run the jar file.

  • what the name of the file

  • whatever you named the project. the file extension should be .jar

  • @mdumser export it as an executable .jar

  • @wiremod you could create it as an applet, that way it will be possible (among others) to run it in the web browser ^^

  • Thank you very much. My 11 year old son and I are both beginners at programming and at NetBeans. These five videos show a good deal of what we needed to learn to get started. We are copying every step and by doing so learning a great deal.

    I very much appreciate you taking the time to make the videos. We will pass on the good karma. Thanks again.

  • Thx a Lot

    Muchas gracias, me fue muy util

  • Thank you so much!

    This helped me loads.

  • thank you a lot =)

  • thank u....it really helps.

  • very nice, shotty camera work, like most people had to search thru carefully for what you wrote sometimes. but it works, which was the point i guess, so kudos.

  • good vids followed them through. really helpful thanks

    - although just so u know sometimes u cannot see what u have written(took a bit of pausing just at the right moment :P), i think it happens in vid 3 most

  • I know, sorry about the video. Kinda new at it.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more